Added new handlers for HTTP error codes. (fixes #1)