Adding more verbose output to exceptions raised due to unexpected status codes.