Here are the examples of the python api django.utils.six.moves.http_client.responses.get taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: django-rest-framework
License: View license
Source File:
    def status_text(self):
        Returns reason text corresponding to our HTTP response status code.
        Provided for convenience.
        # TODO: Deprecate and use a template tag instead
        # TODO: Status code text for RFC 6585 status codes
        return responses.get(self.status_code, '')

Example 2

Project: cgstudiomap
License: View license
Source File:
    def reason_phrase(self):
        if self._reason_phrase is not None:
            return self._reason_phrase
        # Leave self._reason_phrase unset in order to use the default
        # reason phrase for status code.
        return responses.get(self.status_code, 'Unknown Status Code')