Enum Class HttpError.StreamErrorCode

java.lang.Object
java.lang.Enum<HttpError.StreamErrorCode>
org.mockserver.model.HttpError.StreamErrorCode
All Implemented Interfaces:
Serializable, Comparable<HttpError.StreamErrorCode>, Constable
Enclosing class:
HttpError

public static enum HttpError.StreamErrorCode extends Enum<HttpError.StreamErrorCode>
Well-known stream-level error codes for HTTP/2 (RFC 7540 section 7) and HTTP/3 (RFC 9114 section 8.1). The numeric code() is the value written on the wire as the RST_STREAM (HTTP/2) or RESET_STREAM (HTTP/3) error code. The HTTP/2 and HTTP/3 code spaces are distinct; this enum exposes both families so an expectation can name a code by mnemonic. When a code is supplied via HttpError.withStreamError(long) the raw numeric value is used verbatim, so any future or vendor-specific code can still be injected.