Added support for other HTTP status codes