Skip to content
Last updated

Error Messages

The Suscription API uses standard HTTP response codes to indicate the success or failure of API requests.

HTTP Status Codes

Status CodeDescription
200Success - The request was successful
400Bad Request - The request was malformed or invalid
401Unauthorized - Authentication credentials are missing or invalid
403Forbidden - The authenticated user does not have access to this resource
404Not Found - The requested address could not be found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - An unexpected error occurred
503Service Unavailable - The service is temporarily unavailable

Error Response Format

Error responses will include a JSON body with additional details:

Response Structure

FieldTypeDescription
errorTypestringStable error code that can be used to decide how to handle an error
errorMessagestringHuman-readable description of the error

Example Error Responses

Invalid Input (400)

{
  "errorType": "INVALID_INPUT",
  "errorMessage": "response - value is not a valid dict"
}

Unauthorized (401)

{
  "errorType": "UNAUTHORIZED",
  "errorMessage": "Unauthorized"
}

Resource Not Found (404)

{
  "errorType": "RECORD_NOT_FOUND",
  "errorMessage": "Subscription record not found"
}

Internal Server Error (500)

{
  "errorType": "INTERNAL_SERVER_ERROR",
  "errorMessage": "The system has encountered an unexpected error, please try again later."
}