print out the HTTP error code and message of failed requests