from

The response message carries: its code, options and payload, without the messaging-layer fields.

Throws

when message has no response code (RFC 7252 §5.9), such as a request or an Empty message.