Exception classes
DevhelmError
The base exception for all API errors:| Property | Type | Description |
|---|---|---|
code | str | Error category |
status | int | HTTP status code |
message | str | Human-readable error message |
detail | str | None | Additional context |
AuthError
Raised for authentication and authorization failures (401, 403):AuthError extends DevhelmError with code always set to "AUTH".
Error codes
| Code | HTTP status | Description |
|---|---|---|
AUTH | 401, 403 | Invalid or expired token, insufficient permissions |
NOT_FOUND | 404 | Resource does not exist |
CONFLICT | 409 | Resource conflict (e.g., deploy lock held) |
VALIDATION | 400, 422 | Invalid request body or parameters |
API | 5xx, other | Server error or unexpected response |
Handling patterns
Catch specific error codes
Retry with backoff
Deploy lock contention
Network errors
The SDK useshttpx under the hood. Network-level errors (timeouts, DNS failures, connection refused) raise httpx exceptions, not DevhelmError:
Next steps
Client reference
Full method reference for all resources.
Error patterns
Common error scenarios across all surfaces.