Reason
Why a message was rejected. New reasons may be added before 1.0; use an else branch.
Entries
An Empty Non-confirmable message, dropped: a Non-confirmable message carries a request or a response (RFC 7252 §4.3).
A code of a reserved class (1, 6 or 7 over datagrams, RFC 7252 §4.2, §4.3), rejected with a Reset if Confirmable and dropped otherwise; on a connection a code that is neither a request, a response nor signaling, dropped.
A signaling code (7.xx) that RFC 8323 §5 does not assign, dropped.
A response whose token matches no exchange, rejected with a Reset (RFC 7252 §5.3.2), which also cancels an observation the client no longer has (RFC 7641 §3.6); dropped on a connection.
A Non-confirmable request, or a response, with a critical option this endpoint does not recognize, or one that counts as such for its length or repetition (RFC 7252 §5.4.1, §5.4.3, §5.4.5): rejected with a Reset, or dropped on a connection. A Confirmable request gets 4.02 Bad Option instead.
An Acknowledgement carrying a request or a code of a reserved class, silently ignored (RFC 7252 §4.2).
A response piggybacked on the Acknowledgement of a request, whose token is not the request's (RFC 7252 §5.3.2): ignored, so the request stays outstanding.
A Reset that is not Empty, silently ignored (RFC 7252 §4.2).
A datagram from UDP source port 0, which names no port to answer to (RFC 768), dropped before it was parsed: a Reset to a ping or to a format error (RFC 7252 §4.2, §4.3), an ACK or a response would all fail to send. messageId is the one in its header, or 0 for a datagram shorter than a header.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.