$npx skillfedfor your agent

drf-exceptions-hog

Standardized and easy-to-parse API error responses for DRF.

Worth itPyPI Dynamic ContentReleased May 20232.1M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — drf_exceptions_hog-0.4.0-py3-none-any.whl
v0.4.0 · released 2023-05-08 · Python >=3.7 · 1 runtime deps: djangorestframework

Yes. Low install friction, active maintenance, no known vulnerabilities, and permissive MIT license. Install if you use Django REST Framework and want to eliminate frontend error-parsing complexity by standardizing exception responses. Skip only if you have already built custom exception handling or do not expose DRF errors to frontend clients.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django 3.1+ and Python 3.7+; only supports JSON responses.
  • Low install friction; single runtime dependency on djangorestframework.
  • Actively maintained with recent commits; last release was over a year ago but repository remains active with no archived status.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2023-05-08 (1194 days) · last repo commit 2026-08-05 · 67 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,092,643 downloads/mo, #3,301 on PyPI

Verify before relying

pip install drf-exceptions-hog

# In settings.py:
REST_FRAMEWORK = {
    "EXCEPTION_HANDLER": "exceptions_hog.exception_handler",
}

# Exceptions now return standardized JSON:
# {"type": "validation_error", "code": "required", "detail": "...", "attr": "field_name"}
  • Whether the package handles all DRF exception types or only a documented subset.
  • Performance impact when exception reporting is enabled in production.
  • Compatibility with Django versions beyond 3.2.x (latest tested version in fact sheet).
Same gist for agents: .md · .json

What it is and what it does

DRF Exceptions Hog wraps Django REST Framework's exception handling to transform inconsistent error responses into a predictable, structured format. Instead of varying response shapes—some with field-level errors as arrays, others with a single detail string—it normalizes all exceptions to a consistent schema with type, code, detail, attr, and optional list fields. This makes frontend error parsing deterministic across languages and frameworks.

The package is configured via a single settings entry that replaces DRF's default exception handler. It supports optional error reporting hooks (useful for Sentry or NewRelic integration), nested field error flattening with customizable separators, and an opt-in mode to collect and return multiple validation errors in a single response rather than failing on the first. It requires only djangorestframework as a runtime dependency and works with Python 3.7+.

Use it for

  • Simplify frontend error parsing by ensuring all API errors follow a single, predictable JSON schema across your DRF endpoints.
  • Integrate error reporting to external services (Sentry, NewRelic) by configuring the EXCEPTION_REPORTING handler.
  • Display all validation failures to users in a single form submission instead of stopping at the first error.
  • Provide consistent error codes and messages across multiple frontend frameworks or mobile apps consuming the same API.
  • Customize error attribute naming for nested serializers using the NESTED_KEY_SEPARATOR setting.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Low install friction, active maintenance, no known vulnerabilities, and permissive MIT license. Install if you use Django REST Framework and want to eliminate frontend error-parsing complexity by standardizing exception responses. Skip only if you have already built custom exception handling or do not expose DRF errors to frontend clients.

Install

drf-exceptions-hog on PyPI

Before you install

Low install friction; single runtime dependency on djangorestframework. Actively maintained with recent commits; last release was over a year ago but repository remains active with no archived status.

Requires Django 3.1+ and Python 3.7+; only supports JSON responses.

License in practice

MIT license (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install drf-exceptions-hog

# In settings.py:
REST_FRAMEWORK = {
    "EXCEPTION_HANDLER": "exceptions_hog.exception_handler",
}

# Exceptions now return standardized JSON:
# {"type": "validation_error", "code": "required", "detail": "...", "attr": "field_name"}

Verify before relying

  • Whether the package handles all DRF exception types or only a documented subset.
  • Performance impact when exception reporting is enabled in production.
  • Compatibility with Django versions beyond 3.2.x (latest tested version in fact sheet).

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
djangorestframework
MaintenanceActively maintained 1,194 days since the last release
Last repo commit
First released
Downloads2,092,643 / month, #3,301 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: drf_exceptions_hog-0.4.0-py3-none-any.whl

Tags

Capabilities
DRF error response standardizationDjango REST Framework exception handlerAPI error formattingconsistent error responsesfrontend-friendly error parsingDRF exception middlewarestructured API errors
Topics
django-rest-frameworkerror-handlingapi-standardization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “DRF error response standardization”

Give your agent the search over MCP, or paste the wish link into any chat.

More Dynamic Content packages

MarkupSafe Worth it
PyPI · Dynamic Content · released Sep 2025

MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.

BSD-3-Clausecompiled wheel · 3.9+aging
797.1Mdownloads / mo
Jinja2 Worth it
PyPI · Dynamic Content · released Mar 2025

Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.

BSD-3-Clausepure Python · 3.7+aging
718.6Mdownloads / mo
soupsieve Worth it
PyPI · Python Modules · released Aug 2026

Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.

Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.

MITpure Python · 3.10+
428.6Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo
Flask Worth it
PyPI · Application Frameworks · released Feb 2026

Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.

BSD-3-Clausepure Python · 3.9+
211.4Mdownloads / mo
Mako Worth it
PyPI · Dynamic Content · released Aug 2026

Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.

MITpure Python · 3.10+
201.7Mdownloads / mo

See also drf-standardized-errors · drf-rw-serializers · drf-jsonschema-serializer · drf-dynamic-fields · drf-api-logger · drf-recaptcha · drf-orjson-renderer · drf-pydantic · zExceptions · drf-extensions