HTTP error codes
You can receive HTTP error codes while calling the API endpoints.
Client side (4xx)
4xx)Client errors are due to the request your server issued to the Ocus API. You will receive a HTTP Status code starting with the number 4 , and the error is described in the payload of the answer.
401: bad authentication: please check your credentials and the format of the authentication header404: unknown resource: you are requesting informations about an object which does not exist422: bad requests: the payload you sent is incorrect or you do not have included the "Content-type: application/json" in your request
Server side (5xx)
5xx)Server side errors are due to an exceptional problem from Ocus servers or your proxy server. You should receive a HTTP Status code starting with the number 5.
Although this is not supposed to happen, such errors may be due to urgent service maintenance and are temporary.
In case such unexpected error persists, please contact Ocus team to help us investigate.
Updated 10 months ago