This pull request aims to standardize error handling in the Django Rest Framework by implementing the drf_standardized_errors package. The changes involve:
Adding a new error formatter class that combines the old and new error response formats to maintain compatibility.
Updating multiple API views to raise standardized exceptions instead of returning error responses directly.
Which issue(s) this PR closes
Related to [issue link here]
Checklist
[ ] Unit, integration, and e2e (if applicable) tests updated
[ ] Documentation added (or pr:no public docs PR label added if not required)
[ ] Added the relevant release notes label (see labels prefixed w/ release:). These labels dictate how your PR will
show up in the autogenerated release notes.
some of the exceptions that are raised outside of drf are not handled by drf-standartized-errors handler, especially in middleware. We need to address that before rolling this pr. Closing the PR for now
What this PR does
This pull request aims to standardize error handling in the Django Rest Framework by implementing the drf_standardized_errors package. The changes involve:
Which issue(s) this PR closes
Related to [issue link here]
Checklist
pr:no public docs
PR label added if not required)release:
). These labels dictate how your PR will show up in the autogenerated release notes.