Skip to main content
This exception represents errors returned by the Fiddler platform API, including both client errors (4xx status codes) and server errors (5xx status codes). It contains detailed information about the error including the HTTP status code, error message, and any additional error details provided by the API. ApiError serves as the base class for more specific API errors like NotFound and Conflict, but can also be raised directly for other HTTP error status codes. You won’t see HTTP 429 or most 5xx codes here: the client retries those itself and, when it gives up, raises a plain BaseError instead.

errors

Additional error details from the API (if any)

Examples

Handling general API errors:
Handling specific status codes:

Attributes

str
default:"'ApiError'"
Short reason string identifying the error type.
int
default:"500"
HTTP status code returned by the API response.