🟢Understanding Responses and Handling Errors

API responses are delivered in JSON format. The client applications must parse this JSON to extract the required data. Equally important is handling the HTTP status code returned with each response to determine success or failure.

Common HTTP Status Codes:

400

Bad Request: Malformed request, invalid parameters or format

Check your request syntax and parameters

401

Unauthorized: Authentication failed (missing, invalid, or expired token)

Obtain or refresh your API Key

403

Forbidden: Auth succeeded, but no permission for resource

Ensure your account has access rights

404

Not Found: Resource or endpoint does not exist

Verify the endpoint path and resource identifiers

429

Too Many Requests: Rate limit exceeded

Slow down requests; respect rate limits

500

Internal Server Error: Unexpected server issue

Try again later; contact support if persistent

504

Gateway Timeout: Backend server did not respond in time

Retry after a short wait; check for heavy queries

Last updated

Was this helpful?