DRF Standardized Errors
latest

Table of Contents

  • Quickstart
  • Settings
  • Error Response Format
  • Customization
  • Gotchas
  • Development
  • Release
  • Changelog
DRF Standardized Errors
  • »
  • DRF Standardized Errors
  • Edit on GitHub

DRF Standardized Errors

Standardize your DRF API error responses.

Table of Contents

  • Quickstart
    • Important Notes
  • Settings
  • Error Response Format
    • Error Types
      • Validation Errors
      • Client Errors
      • Server Errors
    • Multiple Errors Support
    • Nested Serializers Support
    • List Serializers Support
  • Customization
    • Exception handling flow
    • Sample customizations
      • Handle a non-DRF exception
      • Change the format of the error response
  • Gotchas
    • Writing tests
      • TL;DR
      • The long version
  • Development
    • Contributing
    • Run tests locally
    • Documentation
  • Release
    • Automated Release
    • Manual Release Steps
  • Changelog
    • [UNRELEASED]
    • [0.11.0] - 2022-06-24
      • Changed (Backward-incompatible)
    • [0.10.2] - 2022-05-08
      • Fixed
    • [0.10.1] - 2022-05-08
      • Fixed
    • [0.10.0] - 2022-05-08
      • Added
    • [0.9.0] - 2022-05-07
      • Added

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.

Next

© Copyright 2022, Ghazi Abbassi. Revision abb808b7.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds