Skip to content
Last updated

HTTP Codes

Response Codes

Elevate IQ APIs use standard HTTP response codes. Here are the most common codes you may encounter:

2xx Successful Responses

These responses confirm the request was expected and successful.

Response CodeDescription
200 OKThe request has succeeded.
201 CreatedThe request has been accepted and resulted in a new resource being created. The newly created resource will be returned with a unique ID.
204 No ContentThe request was successful, but no body was returned.

4xx Client Error Responses

These responses indicate an error with the request from the client. The response body will contain error details.

Response CodeDescription
400 Bad RequestThe request could not be processed by the server, usually due to malformed syntax or server error. The response body will contain error details.
401 UnauthorizedThe client has not provided valid Authentication information or the user account making the request has been disabled. The response body will contain error details.
403 ForbiddenThe client has provided valid Authentication information, but does not have sufficient permission to access this resource.
404 Not FoundThe requested resource was not found. The response body will contain error details.
405 Not AllowedThe HTTP method is not allowed for this resource.
406 Not AcceptableThe content type specified was not acceptable.
409 ConflictThe resource requested to be created already exists.
415 Unsupported Media TypeThe media/MIME type specified is not supported.

5xx Server Error Responses

These responses indicate a server error.

Response CodeDescription
500 Internal Server ErrorThe server encountered an error while processing your request and failed. Please contact Elevate support.

Error Response Body

When a 4xx or 5xx response is returned, an error response body will typically be included with details about the error. The structure may vary but generally includes:

{
  "error": "Bad Request",
  "message": "Validation failed for field 'customerName': must not be empty",
  "timestamp": "2026-01-08T12:00:00Z",
  "path": "/customers"
}

Multiple validation errors may be returned in a single response when applicable.

Tips for Handling Errors

  1. Always check response codes - Don't assume success; check the HTTP status code
  2. Parse error messages - Error responses contain useful information for debugging
  3. Implement retry logic - For 5xx errors, implement exponential backoff retry strategies
  4. Handle authentication failures - Refresh tokens when receiving 401 responses
  5. Log errors with context - Include request details when logging errors for support

Need Help?

If you encounter persistent errors or need clarification: