Adds handling of HTTP 400 errors (BadRequest) and ensures that HEAD requests still return error messages.
Merge pull request #32 from flyingzumwalt/master

Adds handling of HTTP 400 errors (BadRequest)