Errors

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 CodeDescriptionMost Likely Cause
2XXSuccessful RequestRequest processed successfully
400Bad RequestInvalid/missing data
401UnauthorizedInvalid/missing credentials
404Not FoundThe resource does not exist (e.g., invalid/non-existent user ID)
409ConflictTrying to overwrite a resource (e.g., creating a user with an email that already exists)
429Too Many RequestsHit an API rate limit
50XServer ErrorWe made a mistake. Please contact us