Example usage for org.springframework.http HttpStatus is1xxInformational

List of usage examples for org.springframework.http HttpStatus is1xxInformational

Introduction

In this page you can find the example usage for org.springframework.http HttpStatus is1xxInformational.

Prototype

public boolean is1xxInformational() 

Source Link

Document

Whether this status code is in the HTTP series org.springframework.http.HttpStatus.Series#INFORMATIONAL .

Usage

From source file:craterdog.marketplace.ServiceResponseErrorHandler.java

@Override
protected boolean hasError(HttpStatus statusCode) {
    // only throw exception when the status code is not expected
    boolean result = statusCode.is1xxInformational() || statusCode.is3xxRedirection();
    return result;
}