MCPcopy
hub / github.com/django/django / reason_phrase

Method reason_phrase

django/http/response.py:148–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146
147 @property
148 def reason_phrase(self):
149 if self._reason_phrase is not None:
150 return self._reason_phrase
151 # Leave self._reason_phrase unset in order to use the default
152 # reason phrase for status code.
153 return responses.get(self.status_code, "Unknown Status Code")
154
155 @reason_phrase.setter
156 def reason_phrase(self, value):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected