Introduction
Errors
Billingrails uses standard HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx
range indicate success, codes in the 4xx
range indicate client errors, and codes in the 5xx
range indicate a server error that we will immediately work to fix. All Billingrails errors conform to the following schema:
Example API error
Response Codes
Billingrails uses conventional HTTP response codes to indicate the success or failure of an API request:
200 OK
- Request succeeded400 Bad Request
- Request contains invalid parameters401 Unauthorized
- Invalid API key provided404 Not Found
- The requested resource doesn’t exist422 Unprocessable Entity
- The request was well-formed but invalid429 Too Many Requests
- Too many requests hit the API500 Internal Server Error
- Something went wrong on our end