When I am creating a HttpResponse object, should I pass it a integer for the status_code
attribute, or a string? I.e. HttpResponse('401 Client Error', status=401)
vs. HttpResponse('401 Client Error', status="401")
The documentation is a generic descriptor, that doesn't give the type.
HttpResponse.status_code
The HTTP status code for the response.
You should always pass an integer.
As per the HTTP protocol: