public static NotAuthorizedException toNotAuthorizedException(Throwable cause, Response response) { return new NotAuthorizedException(checkResponse(response, 401), cause); }
public static NotAcceptableException toNotAcceptableException(Throwable cause, Response response) { return new NotAcceptableException(checkResponse(response, 406), cause); }
public static InternalServerErrorException toInternalServerErrorException(Throwable cause, Response response) { return new InternalServerErrorException(checkResponse(response, 500), cause); }
public static BadRequestException toBadRequestException(Throwable cause, Response response) { return new BadRequestException(checkResponse(response, 400), cause); }
public static ForbiddenException toForbiddenException(Throwable cause, Response response) { return new ForbiddenException(checkResponse(response, 403), cause); }
public static NotFoundException toNotFoundException(Throwable cause, Response response) { return new NotFoundException(checkResponse(response, 404), cause); }
public static InternalServerErrorException toInternalServerErrorException(Throwable cause, Response response) { return new InternalServerErrorException(checkResponse(response, 500), cause); }
public static NotSupportedException toNotSupportedException(Throwable cause, Response response) { return new NotSupportedException(checkResponse(response, 415), cause); }
public static BadRequestException toBadRequestException(Throwable cause, Response response) { return new BadRequestException(checkResponse(response, 400), cause); }
public static NotFoundException toNotFoundException(Throwable cause, Response response) { return new NotFoundException(checkResponse(response, 404), cause); }
public static NotSupportedException toNotSupportedException(Throwable cause, Response response) { return new NotSupportedException(checkResponse(response, 415), cause); }
public static NotAuthorizedException toNotAuthorizedException(Throwable cause, Response response) { return new NotAuthorizedException(checkResponse(response, 401), cause); }
public static NotAcceptableException toNotAcceptableException(Throwable cause, Response response) { return new NotAcceptableException(checkResponse(response, 406), cause); }