Fixes HTTP error reporting
Fixes HTTP error reporting

The code was making assumptions about the meaning of HTTP error codes
back from a time when the server responded inconsistently with respect
to type of error. Meanwhile the server passes more informative error
messages, which we are exposing here.

xu-hong/rphenoscape