Opened 4 years ago

Closed 4 years ago

#32258 closed Bug (invalid)

Documentation incorrect for HttpResponse

Reported by: Chris Armstrong Owned by: Hasanul Islam
Component: Documentation Version: 3.1
Severity: Normal Keywords: HttpResponse, status, codes
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/3.1/ref/request-response/#django.http.HttpResponse.status_code is incorrect. When using django, I had to use 'status' instead of 'status_code'.

Django version: 3.1.4
Operating System: CentOS 7

Change History (2)

comment:1 by Hasanul Islam, 4 years ago

Owner: changed from nobody to Hasanul Islam
Status: newassigned

comment:2 by Mariusz Felisiak, 4 years ago

Component: HTTP handlingDocumentation
Easy pickings: unset
Resolution: invalid
Status: assignedclosed

HttpResponse.status_code exists and works as documented. status is not an attribute of HttpResponse but an argument of HttpResponse.__init__().

Note: See TracTickets for help on using tickets.
Back to Top