Reason

Why a message was rejected. New reasons may be added before 1.0; use an else branch.

Entries

Link copied to clipboard

An Empty Confirmable message, a CoAP ping, answered with a Reset as RFC 7252 §4.3 asks.

Link copied to clipboard

An Empty Non-confirmable message, dropped: a Non-confirmable message carries a request or a response (RFC 7252 §4.3).

Link copied to clipboard

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.

Link copied to clipboard

A signaling code (7.xx) that RFC 8323 §5 does not assign, dropped.

Link copied to clipboard

A request to an endpoint without a server, rejected with a Reset (RFC 7252 §4.2).

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

An Acknowledgement carrying a request or a code of a reserved class, silently ignored (RFC 7252 §4.2).

Link copied to clipboard

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.

Link copied to clipboard

A Reset that is not Empty, silently ignored (RFC 7252 §4.2).

Link copied to clipboard

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

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.