Skip to main content
The FirstQuadrant API uses conventional HTTP response codes to indicate the success or failure of an API request. This guide explains our error format and how to handle common errors.

HTTP status codes

Error response format

All errors follow a consistent JSON structure:

Error response fields

Common error codes

Authentication errors

Validation errors

Resource errors

Rate limiting

Error handling examples

Validation error details

When a validation error occurs, the details array provides specific information about each field that failed validation:

Best practices

  1. Always check the response status before attempting to parse the response body
  2. Handle rate limiting gracefully by implementing exponential backoff
  3. Log error details including the X-Request-Id header for debugging
  4. Parse validation errors to provide user-friendly feedback
  5. Implement retry logic for transient errors (5xx status codes)
  6. Use the error code for programmatic error handling rather than parsing messages

Debugging

When reporting issues, include:
  • The X-Request-Id header from the response
  • The full error response body
  • The request method, URL, and headers (excluding sensitive data)
  • The request body (if applicable)
This information helps our support team quickly identify and resolve issues.