How to change status of JsonResponse in Django
<p>My API is returning a JSON object on error but the status code is <code>HTTP 200</code>:</p>

<pre class="lang-py prettyprint-override"><code>response = JsonResponse({'status': 'false', 'message': message})
return response
</code></pre>

<p>How can I change the response code to indicate an error?</p>