Top Description Fields Constructors Methods
org.springframework.web.reactive.function.client

public Class UnknownHttpStatusCodeException

extends WebClientResponseException
Class Inheritance
Imports
java.nio.charset.Charset, org.springframework.http.HttpHeaders, .HttpRequest, .HttpStatusCode, org.springframework.lang.Nullable

Exception thrown when an unknown (or custom) HTTP status code is received.
Author
Brian Clozel
Since
5.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

public
UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

public
UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

Method Summary

Inherited from org.springframework.web.reactive.function.client.WebClientResponseException:
createcreatecreategetHeadersgetRawStatusCodegetRequestgetResponseBodyAsgetResponseBodyAsgetResponseBodyAsByteArraygetResponseBodyAsStringgetResponseBodyAsStringgetStatusCodegetStatusTextsetBodyDecodeFunction

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.springframework.web.reactive.function.client.WebClientResponseException.serialVersionUID.

Constructor Detail

UnknownHttpStatusCodeExceptionback to summary
public UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

UnknownHttpStatusCodeExceptionback to summary
public UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

Since
5.1.4
UnknownHttpStatusCodeExceptionback to summary
public UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)

Create a new instance of the UnknownHttpStatusCodeException with the given parameters.

Since
6.0