Responses
HTTP Status Codes
Walapay API calls return HTTP status codes. Some API calls also return JSON response bodies that include information about the resource, including one or more contextual HATEOAS links. Use these links to request more information about and construct an API flow that is relative to a specific request. Each REST API request returns an HTTP status code.
Successful Requests
For successful requests, Walapay returns HTTP 2XX
status codes.
Status Code | Description |
---|---|
200 OK | The request succeeded. |
201 Created | A POST method successfully created a resource. 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 Accepted | The server accepted the request and will execute it later. |
204 No Content | The server successfully executed the method but returns no response body. |
Failed Requests
For failed requests, Walapay returns HTTP 4XX
status codes if something passed in the request has an error or 5XX
status codes when something is wrong on our end with a server or service.
HTTP 4XX Status Codes
Status Code | Description | Possible Causes and Solutions |
---|---|---|
400 Bad Request |
| The server could not understand the request. Indicates one of these conditions: |
401 Unauthorized |
| API Key is missing from request header. |
403 Forbidden |
| The request requires access to a resource that does not belong to the requestor. |
404 Not Found |
| The server did not find anything that matches the request URI. Either the URI is incorrect or the resource is not available. For example, no data exists in the database at that key. |
406 Not Acceptable |
| The server cannot use the client-request media type to return the response payload. For example, this error occurs if the client sends an |
409 Conflict |
| The API cannot complete the requested action as it conflicts with another request that is currently being processed. Retry the request later. |
415 Unsupported Media Type |
| The API cannot process the media type of the request payload. For example, this error occurs if the client sends a |
422 Unprocessable Entity |
| The API cannot complete the requested action and might require interaction with APIs or processes outside of the current request. No systemic problems limit the API from completing the request. For example, this error occurs for any business validation errors, including errors that are not usually of the |
429 Too Many Requests |
| The rate limit for the user, application, or token exceeds a predefined value. |
HTTP 5XX Status Codes
Status Code | Description | Possible Causes and Solutions |
---|---|---|
500 Internal Server Error | INTERNAL_SERVER_ERROR. An internal server error has occurred. | A system or application error occurred. Although the client appears to provide a correct request, something unexpected occurred on the server. |
503 Service Unavailable | SERVICE_UNAVAILABLE. Service Unavailable. | The server cannot handle the request for a service due to temporary maintenance. |
Updated 2 months ago