Version 2
You're viewing archived v1 docs.View latest
Errors
Archived error model for the drio v2 management API.
The drio management API returns two different error families. Which one you get depends on which part of the platform you are calling.
This archived docs set describes v2. If you are debugging a legacy integration, use the archived v1 error docs.
First Question: Which Route Family Failed?
| If the failing route is... | Expect this error format |
|---|---|
/.well-known/* | OAuth-style error response |
/api/v2/me, /api/v2/auth-providers, /api/v2/integration-providers, or /api/v2/apps/* | drio resource API error envelope |
1. OAuth Errors
Discovery and auth routes use OAuth-style error responses.
Applies to:
/.well-known/*
Example:
{
"error": "invalid_request",
"error_description": "Missing required field: refresh_token"
}Common auth error codes:
invalid_requestinvalid_client_metadatainvalid_grantinvalid_tokenserver_error
2. Resource API Errors
Apps, provider catalogs, and user routes use the drio API error envelope.
Applies to:
/api/v2/me/api/v2/auth-providers/api/v2/integration-providers/api/v2/apps/*
Example:
{
"error": {
"code": "not_found",
"message": "App not found",
"details": null,
"request_id": "4c9b58ff-69a7-4ccf-840d-a0f1ec9f9d77"
}
}Common Protected Error Codes
bad_requestunauthorizedforbiddennot_foundvalidation_errorinternal_error
Typical Status Codes
| Status | Meaning |
|---|---|
400 | Invalid input or malformed auth request |
401 | Missing, invalid, or expired bearer token |
403 | Authenticated but not allowed to access that resource |
404 | The requested route or resource does not exist |
422 | The request shape was valid JSON, but failed validation |
500 | Unexpected server-side failure |
How To Debug Faster
- if the failure came from
/.well-known/*, debug it as an OAuth discovery issue - if the failure came from
/api/v2/apps/*or/api/v2/me, debug it as a resource API issue - use
request_idfrom the resource envelope when coordinating support or log lookup