Error Handling

Errors are unavoidable in any system, and this API is no different. However, understanding what each error code means can greatly aid in debugging and resolving issues quickly. This page outlines the universal error codes used across the API.

Universal Error Codes

These are the common error codes that can be encountered while interacting with the API.

401: "No Authorization Header"

This error occurs when the authorization header is missing in the request. Make sure to include a valid authorization token in your request headers.

402: "Malformed Authorization Header"

This error indicates that the format of the authorization header is incorrect. Double-check the syntax and format of the header.

403: "Invalid API Key"

This error is returned when the provided API key is invalid or has been revoked. Please verify the API key or regenerate a new one if needed.

Example Error Response

GET
/v1/errors
curl https://api.yourdomain.com/v1/errors \
  -H "Authorization: Bearer {token}"

Was this page helpful?