# Code generated by openapi-nexus. DO NOT EDIT.
#
# Minimal API — 1.0.0
"""API error type."""
from __future__ import annotations
class ApiError(Exception):
"""Raised when the server returns a 4xx or 5xx status code."""
def __init__(self, status_code: int, status: str, body: bytes) -> None:
self.status_code = status_code
self.status = status
self.body = body
super().__init__(f"{status_code} {status}")