Error Handling

The APIs use standard HTTP status codes and structured JSON error responses.

Common Status Codes

CodeMeaning
200Success
400Bad request
401Unauthorized
403Forbidden
404Not found
422Validation failed
500Internal server error

Error Payload

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "The request payload is invalid"
  }
}