Error responses sent from the servers will be accompanied by a JSON body, with the following keys:
Key | Value |
---|---|
message | Human readable message which corresponds to the client error. |
code | Underscored delimited string. |
Example Error Response
{
"message": "Invalid user",
"code": "invalid"
}
HTTP Status Codes
Status codes are issued in responses to requests made to the server.
HTTP Status Code | Description |
---|---|
200 | OK. Everything worked as expected. |
201 | Created. We will return a 201 after a successful POST where a resource was created. |
302 | Retry request on given redirect URI. |
400 | Malformed request. |
401 | Unauthorised. The request requires user authentication (not logged in). |
403 | Forbidden. Used for unauthorised requests where your permissions restrict the request. Can also indicate that the User is not allowed. User is banned and is not permitted to request a ride. |
404 | Resource not found. |
406 | Unacceptable content type. |
409 | A conflict needs to be resolved before the request can be made. |
422 | Invalid request. |
429 | Too Many Requests. |
500 | Internal Server Error. |
503 | The requested service is not available. |
Updated 2 years ago