Handle error conditions from HTTP status codes. Refs #2029

Automatic retry is attempted only for GET requests.