the http client uses EIO to detect connection errors specifically. if we
map normal http errors to EIO, we incorrectly mark their endpoint as
failed and route requests to other endpoints (if any exist)
default to ERR_INTERNAL_ERROR (500 InternalError) instead
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
37352a90740960407a07977dd7236156b803dd63)
case 503:
return -EBUSY;
default:
- return -EIO;
+ return -ERR_INTERNAL_ERROR;
}
return 0; /* unreachable */