Add support to use a custom reason-phrase in response's status line #1032

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@anler

anler 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

This comment has been minimized.

Show comment Hide comment
@aaugustin

aaugustin May 19, 2013

Member

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

Member

aaugustin commented May 19, 2013

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

This comment has been minimized.

Show comment Hide comment
@aaugustin

aaugustin May 19, 2013

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