Error Handling
2xx
range indicate success.4xx
errors indicate client-side issues where the request made by the client is incorrect or cannot be fulfilled by the server. These errors suggest that the problem lies with the client’s request, such as incorrect syntax, invalid authentication, or lack of necessary permissions.5xx
range indicate an error with Modaltrans’ servers.In the event of an error during any process, the system will provide an error response in JSON format. This response includes a JSON object that outlines the errors encountered. Below is an example of the structure of such an error response:
Error codes
400 - Bad Request
403 - Forbidden
404-Record Not Found
422-Unprocessable Entity
500 - Internal Server Error
503-Service Unavailable
Cause : The reason for a 400 response is typically due to malformed request syntax, invalid request message framing, or deceptive request routing.Solution : Ensure that the request syntax is correct according to the API specifications. Ensure that all fields in the request are of the correct data types as specified in the API documentation.
If you need help or have any questions, please Contact our support team.
Modified at 2024-09-09 13:27:45