Status codes
Bloc uses standard REST status codes to indicate success or failed requests on our API.
In general, codes like 2xx indicate success; 4xx means an error based on the information provided (e.g. wrong API keys or missing customer credentials); 5xx indicates an error with our servers (and these are very rare).
Let’s clarify them further.
Status Code | Meaning |
---|---|
200, 201, 202 | Everything is alright. |
400 | Bad Request. check your request body to ensure all required data is passed. |
401 | Unauthorized. Ensure you are passing the correct API keys. |
404 | Not found. The resource you are looking for does not exist. |
403 | Not enough permission to perform this operation |
429 | Too many requests are being sent in a short period of time. |
500, 502, 503, 504 | Definitely our fault. Rarely happens. |
Updated 6 months ago