Class UnknownHttpStatusCodeException

All Implemented Interfaces:
Serializable

public class UnknownHttpStatusCodeException extends WebClientResponseException
Exception thrown when an unknown (or custom) HTTP status code is received.
Since:
5.1
Author:
Brian Clozel
See Also:
  • Constructor Details

    • UnknownHttpStatusCodeException

      public UnknownHttpStatusCodeException(int statusCode, org.springframework.http.HttpHeaders headers, byte[] responseBody, Charset responseCharset)
      Create a new instance of the UnknownHttpStatusCodeException with the given parameters.
    • UnknownHttpStatusCodeException

      public UnknownHttpStatusCodeException(int statusCode, org.springframework.http.HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable org.springframework.http.HttpRequest request)
      Create a new instance of the UnknownHttpStatusCodeException with the given parameters.
      Since:
      5.1.4
    • UnknownHttpStatusCodeException

      public UnknownHttpStatusCodeException(org.springframework.http.HttpStatusCode statusCode, org.springframework.http.HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable org.springframework.http.HttpRequest request)
      Create a new instance of the UnknownHttpStatusCodeException with the given parameters.
      Since:
      6.0