case 401:
throw new NotAuthorizedException(href,null);
case 403:
throw new NotAuthorizedException(href,null);
case 404:
throw new NotFoundException(href);
case 405:
throw new MethodNotAllowedException(result, href);
case 409:
throw new ConflictException(href);
default: