DRF Standardized Errors
Standardize your DRF API error responses.
Table of Contents
- Quickstart
- Settings
- Error Response Format
- Customization
- FAQs
- Standardized errors are not shown in local development
- Some exceptions are not converted to the standardized format
- I want to let exceptions propagate up the middleware stack
- How can I add extra details about the exception in the error response
- How to integrate this package with djangorestframework-camel-case
- How can I change the default error message for unhandled exceptions
- Gotchas
- Integration wth drf-spectacular
- Sample API Description
- Development
- Release
- Changelog
- [UNRELEASED]
- [0.15.0] - 2025-06-09
- [0.14.1] - 2024-08-10
- [0.14.0] - 2024-06-19
- [0.13.0] - 2024-02-28
- [0.12.6] - 2023-10-25
- [0.12.5] - 2023-01-14
- [0.12.4] - 2022-12-11
- [0.12.3] - 2022-11-13
- [0.12.2] - 2022-09-25
- [0.12.1] - 2022-09-03
- [0.12.0] - 2022-08-27
- [0.11.0] - 2022-06-24
- [0.10.2] - 2022-05-08
- [0.10.1] - 2022-05-08
- [0.10.0] - 2022-05-08
- [0.9.0] - 2022-05-07
Credits
This package was inspired by DRF Exceptions Hog but, with an emphasis on the ability to customize the error response format to your liking while keeping the implementation of the exception handler as close as possible to the original DRF implementation.