#35098: ValidationError is being converted into a 500 Internal Server Error
response
---------------------------------------------+------------------------
Reporter: Yawar Quadir Amin | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
---------------------------------------------+------------------------
If I raise a ValidationError in my app:
https://docs.djangoproject.com/en/5.0/ref/exceptions/#validationerror
It is not explicitly handled by the function that converts exceptions into
Django responses:
https://github.com/django/django/blob/ecd3071dac9bc32028849b1563dc30e49744950e/django/core/handlers/exception.py#L63
So, the app is responding with a 500 Internal Server Error.
Expected behaviour is that it should respond with 400 Bad Request.
--
Ticket URL: <https://code.djangoproject.com/ticket/35098>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018cefaeff1b-56ad0b6c-21b3-4b0a-ac42-f86f34bd384f-000000%40eu-central-1.amazonses.com.