HTTP response status codes

For successful requests, Payenium returns HTTP 2XX status codes.

For failed requests, Payenium returns HTTP 4XX or 5XX status codes.

Full list of status codes:

Status codeDescription
200 OKThe request is successful.
201 CreatedA POST method created a resource successfully. If the resource was already created by a previous execution of the same method, for example, the server returns the HTTP 200 OK status code.
202 AcceptedThe server accepted the request and will execute it later.
204 No ContentThe server successfully executed the method but returned no response body.
400 Bad RequestINVALID_REQUEST. Request is not well-formed, syntactically incorrect, or violates schema.
401 UnauthorizedAUTHENTICATION_FAILURE. Authentication failed due to invalid authentication credentials.
403 ForbiddenNOT_AUTHORIZED. Authorization failed due to insufficient permissions.
404 Not FoundRESOURCE_NOT_FOUND. The specified resource does not exist.
405 Method Not AllowedMETHOD_NOT_SUPPORTED. The server does not implement the requested HTTP method.
406 Not AcceptableMEDIA_TYPE_NOT_ACCEPTABLE. The server does not implement the media type that would be acceptable to the client.
415 Unsupported Media TypeUNSUPPORTED_MEDIA_TYPE. The server does not support the request payload’s media type.
422 Unprocessable EntityUNPROCESSABLE_ENTITY. The API cannot complete the requested action, or the request action is semantically incorrect or fails business validation.
429 Unprocessable EntityRATE_LIMIT_REACHED. Too many requests. Blocked due to rate limiting.
500 Internal Server ErrorINTERNAL_SERVER_ERROR. An internal server error has occurred.
503 Service UnavailableSERVICE_UNAVAILABLE. Service Unavailable.