#3362 closed New feature (wontfix)
Add HttpResponseNoContent response type
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | HTTP handling | Version: | dev |
| Severity: | Normal | Keywords: | http status response |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Add a django.http.HttpResponseNoContent class which encapsulates the 204 response from the HTTP spec.
This should be used when input is sent to the server, but no response is received. An Ajax callback is a good example of where this is relevant.
Attachments (3)
Change History (9)
by , 19 years ago
| Attachment: | httpresponsenocontent.patch added |
|---|
by , 19 years ago
| Attachment: | httpresponsenocontent.2.patch added |
|---|
Add django.http.HttpResponseNoContent? (status 204 response class)
by , 19 years ago
| Attachment: | httpresponsenocontent.3.patch added |
|---|
Add django.http.HttpResponseNoContent (status 204 response class) and documentation
comment:3 by , 19 years ago
| Needs tests: | set |
|---|---|
| Triage Stage: | Unreviewed → Design decision needed |
comment:5 by , 18 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
We've decided in the past not to add a new class for every single response code. You can already pass the status code in when creating the HttpResponse class, so that can be used in this case.
comment:6 by , 8 months ago
| Component: | Core (Other) → HTTP handling |
|---|---|
| Needs tests: | unset |
| Severity: | → Normal |
| Type: | → New feature |
Add django.http.HttpResponseNoContent (status 204 response class)