This commit is contained in:
Daniel Chimeno 2018-01-25 11:42:58 +00:00 committed by GitHub
commit cea747e2dc

View File

@ -67,7 +67,7 @@ In order to alter the style of the response, you could write the following custo
response = exception_handler(exc, context) response = exception_handler(exc, context)
# Now add the HTTP status code to the response. # Now add the HTTP status code to the response.
if response is not None: if response:
response.data['status_code'] = response.status_code response.data['status_code'] = response.status_code
return response return response