#26262: Add HTTP response status code to JsonResponse
-------------------------------+--------------------
     Reporter:  boussouira     |      Owner:  nobody
         Type:  New feature    |     Status:  new
    Component:  HTTP handling  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The `JsonResponse` class doesn't have/accept a status code, it would be
 helpful to add a `status_code` paramtere to this class, for example:


 {{{
     return JsonResponse({'error':'Unauthorized access'}, status_code=401)
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26262>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.9c7d0207dba90a51d68a140d8f28e327%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to