default boolean isError(int statusCode) {
            return statusCode < HttpStatus.SC_OK || HttpStatus.SC_REDIRECTION <= statusCode;
        }
Whether this status code means the response is an error response.
http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java