drio
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_request
  • invalid_client_metadata
  • invalid_grant
  • invalid_token
  • server_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_request
  • unauthorized
  • forbidden
  • not_found
  • validation_error
  • internal_error

Typical Status Codes

StatusMeaning
400Invalid input or malformed auth request
401Missing, invalid, or expired bearer token
403Authenticated but not allowed to access that resource
404The requested route or resource does not exist
422The request shape was valid JSON, but failed validation
500Unexpected 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_id from the resource envelope when coordinating support or log lookup