The Docsumo API uses HTTP status codes to indicate successful or failed requests. 2XX status codes represent successful requests, while 4XX and 5XX status codes indicate that an error has occurred. If you receive an error HTTP status code, check the response body for an error code and message.
Valid Server Response
{
"data": []
"status": "success",
"status_code": 200
}
Error response
{
"status_code": 401,
"message": "Validation Failed.",
"error_code": "UNAUTHORIZED"
}
Status Code | Description | Most Likely Cause |
---|---|---|
2XX | Successful Request | Request processed successfully |
400 | Bad Request | Invalid/missing data |
401 | Unauthorized | Invalid/missing credentials |
404 | Not Found | The resource does not exist (e.g., invalid/non-existent user ID) |
409 | Conflict | Trying to overwrite a resource (e.g., creating a user with an email that already exists) |
429 | Too Many Requests | Hit an API rate limit |
50X | Server Error | We made a mistake. Please contact us |