Error Handling

All errors are in JSON format and are based on HTTP status codes.
For example when header authentication credentials X-Enderpay-Api-Key and X-Enderpay-Api-Secret are provided to the API are incorrect a HTTP status of 403 Forbidden will be returned along with a JSON body containting the status code and a friendly message.
Handled HTTP errors include:
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 429 Too Many Requests
  • 500 Internal Server Error