Re: [Django] #36848: Documentation doesn't directly mention that BadRequest is handled by handler400

5 views
Skip to first unread message

Django

unread,
Jan 7, 2026, 2:26:59 PMJan 7
to django-...@googlegroups.com
#36848: Documentation doesn't directly mention that BadRequest is handled by
handler400
-------------------------------------+-------------------------------------
Reporter: Lincoln | Owner: Kundan
Type: | Yadav
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: handler400 | Triage Stage: Accepted
bad_request |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Kundan Yadav):

i am sorry again i will keep all this in my mind am really sorry again
--
Ticket URL: <https://code.djangoproject.com/ticket/36848#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 8, 2026, 1:16:59 AMJan 8
to django-...@googlegroups.com
#36848: Documentation doesn't directly mention that BadRequest is handled by
handler400
-------------------------------------+-------------------------------------
Reporter: Lincoln | Owner: Kundan
Type: | Yadav
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: handler400 | Triage Stage: Accepted
bad_request |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Lincoln):

Thanks Natalia for the quick reply.

To me (someone not familiar with Django internals) its not obvious what
the part about "reaches the ASGI/WSGI handler level" in `BadRequest` docs
means.

The part "results in a `HttpResponseBadRequest`." is ambiguous to me, that
could be a 400 response with no body.

The `handler400` docs say "the view that should be called if the HTTP
client has sent a request that caused an error condition and a response
with a status code of 400."

This is also ambiguous to me. For example a view that manually returns a
400 response, does NOT trigger this handler, when you could interpret it
to mean that.
--
Ticket URL: <https://code.djangoproject.com/ticket/36848#comment:6>

Django

unread,
Jan 8, 2026, 1:18:36 AMJan 8
to django-...@googlegroups.com
#36848: Documentation doesn't directly mention that BadRequest is handled by
handler400
-------------------------------------+-------------------------------------
Reporter: Lincoln | Owner: Kundan
Type: | Yadav
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: handler400 | Triage Stage: Accepted
bad_request |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Lincoln):

I am happy to provide a PR, since I am the one complaining
--
Ticket URL: <https://code.djangoproject.com/ticket/36848#comment:7>

Django

unread,
Jan 8, 2026, 9:43:04 AMJan 8
to django-...@googlegroups.com
#36848: Documentation doesn't directly mention that BadRequest is handled by
handler400
-------------------------------------+-------------------------------------
Reporter: Lincoln | Owner: Kundan
Type: | Yadav
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: handler400 | Triage Stage: Accepted
bad_request |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):

Replying to [comment:7 Lincoln]:
> I am happy to provide a PR, since I am the one complaining

Amazing, thank you Lincoln! I'll switch ownership to you, following my
conversation with Kundan.
--
Ticket URL: <https://code.djangoproject.com/ticket/36848#comment:8>

Django

unread,
Jan 8, 2026, 9:43:17 AMJan 8
to django-...@googlegroups.com
#36848: Documentation doesn't directly mention that BadRequest is handled by
handler400
-------------------------------------+-------------------------------------
Reporter: Lincoln | Owner: Lincoln
Type: | Status: assigned
Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: handler400 | Triage Stage: Accepted
bad_request |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* owner: Kundan Yadav => Lincoln

--
Ticket URL: <https://code.djangoproject.com/ticket/36848#comment:9>
Reply all
Reply to author
Forward
0 new messages