Class ContentLengthNotAllowedException

All Implemented Interfaces:
Serializable

public final class ContentLengthNotAllowedException extends DecoderException
Thrown by HttpObjectDecoder.handleTransferEncodingChunkedWithContentLength(HttpMessage) by default.

The HTTP/1.1 specification, RFC 9112, disallow senders from including both Tranfer-Encoding and

invalid @code
{@code Content-Length headers in the same message, and permits servers to reject such requests.
See Also:
  • Constructor Details

    • ContentLengthNotAllowedException

      public ContentLengthNotAllowedException(String message)
      Create a new instance with the given message.
      Parameters:
      message - The exception message.