Error Codes
The MoneyLine API uses conventional HTTP status codes to indicate the outcome of a request. All errors return a consistent JSON format so you can handle them predictably in your application.
Error Response Format
Every error response includes a success flag set to false along with an error object containing the HTTP status code and a human-readable message:
Error structure
{
"success": false,
"error": {
"code": 400,
"message": "Descriptive error message here."
}
}
HTTP Status Codes
Below is a complete list of error codes the API may return:
| Code | Status | Description |
|---|---|---|
| 400 | Bad Request | Invalid query parameters or missing required fields |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Your plan does not include access to this resource |
| 404 | Not Found | The requested resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Something went wrong on our end |