GuidesErrors
Guides

Error Handling

Understand Deepvue API error codes, HTTP status codes, and how to handle common errors in your integration.

{
  "detail": "Inactive client_id"
}

Overview

Deepvue APIs return standard HTTP status codes to indicate the success or failure of requests. Error responses include a detail field with a human-readable message describing the issue.

HTTP status codes

Status CodeMeaningDescription
200OKRequest completed successfully
400Bad RequestInvalid request parameters or inactive client
401UnauthorizedAuthentication failed or missing credentials
403ForbiddenValid credentials but insufficient access
422Validation ErrorRequest parameters failed validation
429Too Many RequestsRate limit exceeded — slow down and retry
500Internal Server ErrorServer-side issue — retry or contact support
503Service UnavailableUpstream data source is temporarily unavailable

Error response format

Error responses include a detail field explaining the issue:

Common errors and solutions

Your client_id is inactive, disabled, or the request is malformed.

Common messages: "Inactive client_id", "Bad Request"

  • Verify your credentials in the Deepvue Dashboard
  • Check if your account is active and in good standing
  • Ensure the request body and query parameters are correctly formatted
  • Contact support if the issue persists

Best practices

  • Always check the HTTP status code before parsing the response body
  • Implement retry logic with exponential backoff for 500 and 503 errors
  • Log the transaction_id from successful responses for debugging and support requests
  • Monitor your API usage through the dashboard's logging section
  • Handle token expiration gracefully by refreshing before the 24-hour window expires