Error Handling
Exception hierarchy
Raising
Error properties
Every error has:
| Property | Type | Description |
|---|---|---|
status |
int / number |
HTTP status code |
title |
str / string |
Short title |
detail |
str / string |
Detailed message |
Multiple errors
When the server returns multiple errors in one response — every error is raised
as an ExceptionGroup:
Unknown status codes
Unrecognized HTTP status codes get a dynamic exception class:
Response parsing errors
Errors during response parsing (malformed JSON, unexpected structure) raise the base exception type: