Skip to main content

Error Handling

Access denied: 401 Response

This error occurs when you attempt to access a resource without proper authorization. The API responds with a status code of 401, indicating that access is denied. The error message informs you that an error has occurred, and the timestamp provides the date and time of the error occurrence. The data field specifies the reason for access denial, which in this case is "Access denied".

Not Found: 404 Response

This error occurs when the requested resource is not found on the server. The API responds with a status code of 404, indicating that the resource could not be located. The timestamp indicates when the error occurred. The error message states that the resource was not found, and the path field specifies the endpoint that was accessed and resulted in the error ("/api/v1/authh" in this case).

Not Found: 412 Response

This error occurs when there are validation issues with the data provided in the request. The API responds with a status code of 412, indicating a validation error. The error message states that a validation error has occurred, and the timestamp provides the time of the error

Unexpected error occurred: 500 Response

This error occurs when the requested resource is not found on the server. The API responds with a status code of 404, indicating that the resource could not be located. The timestamp indicates when the error occurred. The error message states that the resource was not found, and the path field specifies the endpoint that was accessed and resulted in the error ("/api/v1/authh" in this case).