Open ektrah opened 5 years ago
There cannot be a response to a response, so sending 4.02 does not work.
Note that 4.2 of 7252 says "Rejecting an
Acknowledgement or Reset message (including the case where the
Acknowledgement carries a request or a code with a reserved class, or
the Reset message is not Empty) is effected by silently ignoring it."
So the approach would work, and we should accept the errata report and include the correction in the document.
Cf. Section 5.4.1:
o Unrecognized options of class "critical" that occur in a
Confirmable response, or piggybacked in an Acknowledgement, MUST
cause the response to be rejected (Section 4.2).
o Unrecognized options of class "critical" that occur in a Non-
confirmable message MUST cause the message to be rejected
(Section 4.3).
Errata ID: 4949 Type: Technical Reported By: Klaus Hartke Date Reported: 2017-02-22
Section 5.10.7 says/should say:
The Location-* options are used in responses. A client cannot return a 4.02 (Bad Option) response in reply to a response. The correct behavior is to reject the response.