diff --git a/djangorestframework/templates/djangorestframework/api.txt b/djangorestframework/templates/djangorestframework/api.txt index b2f071d64..c87a154cd 100644 --- a/djangorestframework/templates/djangorestframework/api.txt +++ b/djangorestframework/templates/djangorestframework/api.txt @@ -2,7 +2,7 @@ {{ description }} -HTTP {{ response.status }} {{ response.status_text }} +HTTP {{ response.status_code }} {{ response.status_text }} {% for key, val in response.headers.items %}{{ key }}: {{ val }} {% endfor %} {{ content }}{% endautoescape %}