Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Apr 29, 2013

HTTP protocol uses the reason-phrase in the response's status line as a message meant solely for human consumption so is perfectly valid to change that phrase for whatever the api designer needs.
django.http.HttpResponse class should allow users to change the reason-phrase if they need so, for example, through a status_text attribute.

@aaugustin
Copy link
Member

The API should be consistent with the API to set the status code. This also needs tests and docs.

@aaugustin aaugustin closed this May 19, 2013
@aaugustin
Copy link
Member

I've implemented this, see https://code.djangoproject.com/ticket/12747#comment:19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant