diff --git a/starlette/exceptions.py b/starlette/exceptions.py index bd3352eb..c48f0838 100644 --- a/starlette/exceptions.py +++ b/starlette/exceptions.py @@ -12,7 +12,7 @@ class HTTPException(Exception): self, status_code: int, detail: str | None = None, - headers: dict[str, str] | None = None, + headers: typing.Mapping[str, str] | None = None, ) -> None: if detail is None: detail = http.HTTPStatus(status_code).phrase