Error Handling

In the course of using the Justt API, you may encounter various error responses. These responses are designed to provide valuable information to help you identify and resolve issues. Errors are represented in the following format

Example:

{  
  "error": "Invalid API key",  
  "message": "The provided API key is invalid or expired",  
  "errorId": "eeb14651-71d6-4653-8ee3-498a20d1f77c"  
}

error_id

a unique identifier you can provide to our support for a better troubleshooting process

Error Types:

Authorization Errors (HTTP 401/403): These errors occur when authentication or authorization issues are encountered.

Request Validation Errors (HTTP 400): Errors resulting from invalid or incomplete request parameters.

Resource Not Found (HTTP 404): Occurs when attempting to access a non-existent resource.

Payload Too Large (HTTP 413): The payload size exceeds the maximum limit. Reduce your payload size and try again.

Rate Limit Exceeded (HTTP 429): Triggered when rate limits for API endpoints are exceeded.

Server Errors (HTTP 5XX): These errors indicate issues on the server side.

Common Error Messages:

"Invalid API Key": The provided API key is invalid or has expired.

"Resource Not Found": The requested resource does not exist.

"Rate Limit Exceeded": You've exceeded the rate limit for this API endpoint.

"Internal Server Error": An unexpected server error has occurred.

Troubleshooting:

When you encounter an error, review the error message and error type for specific information on the issue. Make sure to double-check your request, including the API key, and verify that you are within rate limits. If the problem persists, reach out to our support team for assistance.