From 72fcbb0fc1e0c347c827042722c68ab5efbcfb2e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 9 Jul 2025 09:36:21 -0500 Subject: Move error handling into separate package. --- gn_auth/errors/http/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gn_auth/errors/http/__init__.py (limited to 'gn_auth/errors/http/__init__.py') diff --git a/gn_auth/errors/http/__init__.py b/gn_auth/errors/http/__init__.py new file mode 100644 index 0000000..f4164d1 --- /dev/null +++ b/gn_auth/errors/http/__init__.py @@ -0,0 +1,13 @@ +"""HTTP error handlers.""" + +from .http_4xx_errors import http_4xx_error_handlers +from .http_5xx_errors import http_5xx_error_handlers + +__all__ = ["http_error_handlers"] + +def http_error_handlers() -> dict: + """Return *ALL* HTTP error handlers.""" + return { + **http_4xx_error_handlers(), + **http_5xx_error_handlers() + } -- cgit v1.2.3