Skip to content

Errors

WhiteBridge API uses standard HTTP response codes to indicate request outcomes:

  • 2xx - Success
  • 4xx - Client errors (invalid requests)
  • 5xx - Server errors (rare)

Error Codes

CodeDescription
200Success
204Success (no content)
400Bad request - missing or invalid parameters
401Unauthorized - invalid or missing API key
404Not found - resource doesn't exist
429Rate limit exceeded - reduce request frequency
500Server error - something went wrong on our end

Error Response Format

json
{
  "success": false,
  "error": "Error message"
}

Rate Limiting

When you exceed rate limits, you'll receive a 429 response:

json
{
  "success": false,
  "message": "Rate limit exceeded."
}

We recommend implementing exponential backoff when handling 429 errors.