Class HttpClientErrorException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpClientErrorException.BadRequest, HttpClientErrorException.Conflict, HttpClientErrorException.Forbidden, HttpClientErrorException.Gone, HttpClientErrorException.MethodNotAllowed, HttpClientErrorException.NotAcceptable, HttpClientErrorException.NotFound, HttpClientErrorException.TooManyRequests, HttpClientErrorException.Unauthorized, HttpClientErrorException.UnprocessableEntity, HttpClientErrorException.UnsupportedMediaType

public class HttpClientErrorException extends HttpStatusCodeException
Exception thrown when an HTTP 4xx is received.
Since:
3.0
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode)
      Constructor with a status code only.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText)
      Constructor with a status code and status text.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, and content.
    • HttpClientErrorException

      public HttpClientErrorException(HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, headers, and content.
    • HttpClientErrorException

      public HttpClientErrorException(String message, HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, @Nullable byte[] body, @Nullable Charset responseCharset)
      Constructor with a status code and status text, headers, and content, and a prepared message.
      Since:
      5.2.2
  • Method Details