report status codes on failure

Some errors, such as 413, do not respond with anything in the body, and are thus only diagnosable given the status code. This changes the error message to add the status code to the readout.