get_phrase
Description:
Looks up the stock HTTP description of status_code
.
This is used by set_status to get the correct text to go with a given status code.
There is no reason for you to ever use this function.
If you wanted the textual description for the
status_code of a given
Message, you should just look at the message's
reason_phrase. However, you should only do that for use in debugging
messages; HTTP reason phrases are not localized, and are not generally very descriptive anyway, and so they should never be presented to the
user directly. Instead, you should create you own error messages based on the status code, and on what you were trying to do.
Parameters:
status_code |
an HTTP status code |
Returns:
the (terse, English) description of |