$npx skillfedfor your agent

drf-standardized-errors

Standardize your API error responses.

Worth itPyPI Application FrameworksReleased Apr 2026510.4K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — drf_standardized_errors-0.16.0-py3-none-any.whl
v0.16.0 · released 2026-04-29 · Python >=3.8 · 2 runtime deps: django, djangorestframework

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real pain point in DRF development—inconsistent error response formats. It's particularly valuable if you're building client-facing APIs or integrating with error monitoring. Install it if you want predictable, standardized error responses across your DRF project.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django >= 3.2 and djangorestframework >= 3.12; only handles errors that reach DRF API views, not middleware-level errors.
  • Low friction: pure Python wheel with only django and djangorestframework as runtime dependencies.
  • Actively maintained with recent releases; last commit 2026-07-13 and 347 repository stars indicate ongoing support.

License · maintenance · safety

permissive license (permissive) — MIT licensed under permissive terms, allowing commercial and private use with minimal restrictions.

last release 2026-04-29 (107 days) · last repo commit 2026-07-13 · 347 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 510,391 downloads/mo, #6,268 on PyPI

Verify before relying

pip install drf-standardized-errors

# In settings.py INSTALLED_APPS:
INSTALLED_APPS = ["drf_standardized_errors"]

# In REST_FRAMEWORK settings:
REST_FRAMEWORK = {
    "EXCEPTION_HANDLER": "drf_standardized_errors.handler.exception_handler"
}
  • Whether the package handles all custom exception types or only DRF built-ins.
  • Performance overhead of exception transformation on high-traffic APIs.
  • Compatibility with async DRF views or ASGI deployments.
Same gist for agents: .md · .json

What it is and what it does

DRF Standardized Errors is an exception handler for Django REST Framework that intercepts API errors and reformats them into a consistent JSON structure. Instead of DRF's default varied error responses, it normalizes all 4xx and 5xx errors into a unified format with a type field (validation_error, client_error, or server_error), an errors array containing code, detail, and attr fields, and optional field-level attribution for validation failures.

The package is designed to be plugged into DRF's exception handling pipeline via a single settings change. It handles nested serializers and ListSerializer errors, integrates with error monitoring tools like Sentry, and offers customization hooks to override specific aspects of error handling without rewriting the entire handler. It does not intercept middleware-level errors or unhandled exceptions in debug mode by default.

Use it for

  • Standardize validation error responses across all endpoints so clients parse a consistent structure.
  • Provide field-level error attribution (attr field) to help frontend forms display errors next to the right inputs.
  • Integrate with Sentry or similar error monitoring to receive errors in a predictable format.
  • Build API documentation that documents a single error response schema instead of multiple formats.
  • Customize error codes and messages globally without modifying individual serializers or views.

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real pain point in DRF development—inconsistent error response formats. It's particularly valuable if you're building client-facing APIs or integrating with error monitoring. Install it if you want predictable, standardized error responses across your DRF project.

Install

drf-standardized-errors on PyPI

Before you install

Low friction: pure Python wheel with only django and djangorestframework as runtime dependencies. Actively maintained with recent releases; last commit 2026-07-13 and 347 repository stars indicate ongoing support.

Requires Django >= 3.2 and djangorestframework >= 3.12; only handles errors that reach DRF API views, not middleware-level errors.

License in practice

MIT licensed under permissive terms, allowing commercial and private use with minimal restrictions.

Quickstart

pip install drf-standardized-errors

# In settings.py INSTALLED_APPS:
INSTALLED_APPS = ["drf_standardized_errors"]

# In REST_FRAMEWORK settings:
REST_FRAMEWORK = {
    "EXCEPTION_HANDLER": "drf_standardized_errors.handler.exception_handler"
}

Verify before relying

  • Whether the package handles all custom exception types or only DRF built-ins.
  • Performance overhead of exception transformation on high-traffic APIs.
  • Compatibility with async DRF views or ASGI deployments.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
djangodjangorestframework
MaintenanceActively maintained 107 days since the last release
Last repo commit
First released
Downloads510,391 / month, #6,268 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: drf_standardized_errors-0.16.0-py3-none-any.whl

Tags

Capabilities
drf error standardizationdjango rest framework error handlerapi error response formattingstandardized exception handlerdrf error response wrapperconsistent api error formatdjango rest framework exceptions
Topics
drf-pluginerror-handlingapi-standardization
PyPI keywords
standardized errorserrors formatterdjango rest frameworkexception handler

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 › “django rest framework error handler”

  • drf-standardized-errorsConverts all Django REST Framework API error responses (4xx and 5xx)…
  • drf-exceptions-hogStandardizes Django REST Framework exception responses into a…
  • webargswebargs parses and validates HTTP request arguments (query strings,…

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

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / 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

See also drf-exceptions-hog · drf-spectacular-jsonapi · drf-rw-serializers · drf-spectacular · drf-api-logger · drf-jsonschema-serializer · drf-orjson-renderer · drf-dynamic-fields · djangorestframework · drf-pydantic