Expected errors for GBFS
For having more clarity on API behavior (in case some errors occure), list of GBFS HTTP errors is present.
- 4.x.x
- 5.x.x
4.x.x Errors
Status Code | Description | Response JSON |
---|---|---|
400 | Bad Request | { "error": "Bad Request" } |
400 | Bad Request | { "error":"Bad Request: request.headers should have required property `authorization`" } |
400 | Bad Request | { "error":"Bad Request: ERR_INVALID_AUTHORIZATION_HEADER" } |
401 | Unauthorized | { "error": "Unauthorized: ERR_ACCESS_DENIED" } |
401 | Unauthorized | { "error":"Unauthorized: ERR_INVALID_TOKEN" } |
403 | Forbidden | { "error":"Forbidden: ERR_ACCESS_DENIED" } |
404 | Not Found | { "error": "Not Found: not found" } |
405 | Method Not Allowed | { "error": "Method Not Allowed: POST method not allowed" } |
5.x.x Errors
Status Code | Description | Response JSON |
---|---|---|
500 | Internal Server Error | { "error": "Internal Server Error" } |
503 | Service Unavailable | { "message": "..." } |
504 | Gateway Timeout | { "message": "..." } |