Error Codes
Here is a list of the different categories of status codes returned by the Nightly API. Use these to understand if a request was successful.| Code | Description |
|---|---|
2xx | A 2xx status code indicates a successful response. |
4xx | A 4xx status code indicates a client error. This could be a data validation error on your end. |
5xx | A 5xx status code indicates a server error. This is a problem on our end and an engineer has been paged to investigate. |
Error Types
Any HTTP status codes greater than 399 will have an error body returned. The error body has the following shape:error, so you can also look for the presence of this property to determine if an error has occurred.
Our libraries handle checking for errors automatically.