mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Merge 812772a31d
into 1664588500
This commit is contained in:
commit
cea747e2dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user