{"action":"closed","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2922","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2922/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2922/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2922/events","html_url":"https://github.com/kennethreitz/requests/issues/2922","id":121229016,"number":2922,"title":"Feature: please add a \"status\" field to response object which confirms to PEP 0333","user":{"login":"eric-tucker","id":2693414,"avatar_url":"https://avatars.githubusercontent.com/u/2693414?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-tucker","html_url":"https://github.com/eric-tucker","followers_url":"https://api.github.com/users/eric-tucker/followers","following_url":"https://api.github.com/users/eric-tucker/following{/other_user}","gists_url":"https://api.github.com/users/eric-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-tucker/subscriptions","organizations_url":"https://api.github.com/users/eric-tucker/orgs","repos_url":"https://api.github.com/users/eric-tucker/repos","events_url":"https://api.github.com/users/eric-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/eric-tucker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T12:44:12Z","updated_at":"2015-12-09T12:47:23Z","closed_at":"2015-12-09T12:47:23Z","body":"According to this:\r\nhttps://www.python.org/dev/peps/pep-0333/#the-start-response-callable\r\n\r\nThe response object must contain a status field with string values such as \"200 OK\" or \"403 Forbidden\" and so forth.  If one is developing a Python WSGI compliant API then any framework used (such as falcon) is going to require a status field is set correctly.\r\n\r\nI am deploying a python app behind WSGI (falcon) and I use the requests module to perform requests on behalf of the API consumer (it's a special use case to sign requests going to Amazon Elasticsearch using signature 4 that I did not want to try to write in JavaScript) and as a result I have to take the response object from requests and take values contained within to construct a WSGI compliant response.\r\n\r\nCurrently I have to concatenate the status_code and reason fields from the requests response object to in order to construct a PEP 0333 complaint response status.  A field added to the requests response object would save this extra step.\r\n\r\nThis is a \"nice to have\", not a serious priority."}}