Example usage for org.springframework.http HttpStatus resolve

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

Introduction

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

Prototype

@Nullable
public static HttpStatus resolve(int statusCode) 

Source Link

Document

Resolve the given status code to an HttpStatus , if possible.

Usage

From source file:org.springframework.http.server.reactive.AbstractServerHttpResponse.java

@Override
@Nullable
public HttpStatus getStatusCode() {
    return (this.statusCode != null ? HttpStatus.resolve(this.statusCode) : null);
}