Added support for more http status codes

I am using the 0.9-devel branch on my project. I would like to send this pull request to the 0.9-devel branch. 
Hopefully, I am doing this right.
Thanks.