Add handling of error HTTP 500 codes

This commit is contained in:
Daniel P. Berrange
2006-08-29 18:12:22 +00:00
parent 61e8450f25
commit 55bf738483
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -521,6 +521,9 @@ http2unix(int ret)
case 404:
errno = ESRCH;
break;
case 500:
errno = EIO;
break;
default:
virXendErrorInt(NULL, VIR_ERR_HTTP_ERROR, ret);
errno = EINVAL;