Error Codes & Responses

HTTP Status Codes

The ApiHub API returns appropriate HTTP status codes for every request, as follow:

Code NameDescription
200OKSuccessful request.
201CreatedThe request resulted in a new resource being created.
400Bad RequestThe request was invalid or cannot be served.
401UnauthorizedAuthentication credentials were missing or incorrect.
403ForbiddenThe request was a valid one , but the access is not allowe
404Not FoundThe resource does not exist.
422Unprocessable EntityThe request was well-formed but was unable to be followed due to semantic errors.
500Internal Server ErrorSomething is broken. Please open an issue on Github.
502Bad GatewayApiHub is down.
504Gateway timeoutApiHub is up, but the request couldn’t be served by the backend.