It should be a byte string:

Python 2.x this is "200 OK"
Python 3.x this is b"200 OK"

(Although it may accept a unicode str if only ascii characters)

Look at wikipedia for http status codes.  Of course the right rfc is the
proper place.

But yes, one byte string with code and text.
On Oct 29, 2013 1:45 PM, "Derek Schwalenberg" <[email protected]>
wrote:

> I keep getting type errors for my status parameter in the start_response.
> If I give it a tuple list it wants a byte string
>
>    TypeError: expected byte string object for status, value of type list
> found
>
> if I give it a byte string it wants a tuple list
>
>    TypeError: list of tuple values expected, value of type str found
>
> '200 OK' seem to work fine though. I just can't figure out how to send a
> 401 status.
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" 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].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to