Expose status code in exception for unexpected response status