Fix: response.status_code is an int not a string

Also added the response reason in the error message.