Skip to content

Errors

Glomo uses standard HTTP status codes to indicate the success or failure of an API request:

  • 2xx Success: The request was successful.
  • 4xx Client Error: There was an error with the request.
  • 5xx Server Error: An error occurred on our end.

4xx Client Errors

HTTP Status CodeDescription
400The request is invalid or missing required parameters.
401Authentication failed due to invalid API keys.
402The parameters were valid but the request failed.
403You do not have permission to perform the requested operation.
404The requested resource does not exist.
409The request could not be completed due to a conflict with the current state of the resource.
429Too many requests have been made in a short period.

5xx Server Errors

HTTP Status CodeDescription
500An internal error occurred on Glomo's servers.
502Glomo is temporarily unavailable.
503The service is temporarily unavailable.
504The request to Glomo timed out.

Error Response Format

In case of an error, the response will include an error object with details: It will have two fields:

  • code: This will be internal error code for example: "Card not supported" etc.
  • message: This will be human readable message about error code.
{
  "error": {
    "code": "invalid_request_error",
    "message": "The provided payment method is invalid."
  }
}