Metadata-Version: 2.3
Name: gearyov-drf-error-formatter
Version: 0.1.1
Summary: Custom DRF exception handler that formats all exceptions into a consistent JSON payload
Author: Vladyslav Shesternyov
Author-email: vladyslav.shesternyov22@gmail.com
Requires-Python: >=3.12
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: django (>=4.2,<6.0)
Requires-Dist: djangorestframework (>=3.14,<4.0)
Description-Content-Type: text/markdown

# gearyov-drf-error-formatter

Custom DRF exception handler that formats all exceptions into a consistent JSON payload.

## Features

- **Uniform JSON output** for both DRF-native exceptions and unhandled Python exceptions  
- **Client errors** (4xx) preserve field-level details as flattened messages  
- **Server errors** (5xx) return exception args and type for easier debugging  
- Automatically includes **exception type** and **originating view** in the response

## Installation

```bash

pip install gearyov-drf-error-formatter

