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:

CodeStatusDescription
400Bad RequestInvalid query parameters or missing required fields
401UnauthorizedMissing or invalid API key
403ForbiddenYour plan does not include access to this resource
404Not FoundThe requested resource does not exist
429Too Many RequestsRate limit exceeded
500Internal Server ErrorSomething went wrong on our end