Data API Error Handling
Warning
SingleStore 9.0 gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 8.9 is recommended for production workloads, which can later be upgraded to SingleStore 9.0.
On successful processing of SingleStore's Data API requests, the server returns the 200 OK HTTP status line.
The following table provides a list of HTTP response status codes that are used for handling errors in SingleStore’s Data API requests.
HTTP Status Code |
Description |
---|---|
400 Bad Request |
A general error code used for client request issues for reasons, such as:
|
401 Unauthorized |
When using JWTs to authenticate, this error code may indicate the following issues:
|
403 Forbidden |
Authorization error from SingleStore |
404 Not Found |
Path not found |
405 Method Not Allowed |
Incorrect HTTP method used for the endpoint specified |
408 Request Timeout |
Timeout while waiting for the client to provide a complete request with the headers and the JSON body |
500 Internal Server Error |
A general error code used to handle many different error conditions and are generally considered unexpected. |
504 Gateway Timeout |
Timeout while communicating with the underlying SingleStore node |
Last modified: January 25, 2023