Skip to content

ResponseConformance: enforce no-entity rules for 1xx and 205#630

Closed
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:ResponseConformance
Closed

ResponseConformance: enforce no-entity rules for 1xx and 205#630
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:ResponseConformance

Conversation

@arturobernalg
Copy link
Member

ResponseConformance now rejects EntityDetails for 1xx and 205 responses.

RFC 9110 15.2: “A 1xx response is terminated by the end of the header section; it cannot contain content or trailers.”
RFC 9110 15.3.6: “... a server MUST NOT generate content in a 205 response.”

RFC 9110 requires that 1xx responses “cannot contain content or trailers”
and that 205 responses MUST NOT generate content.
@arturobernalg arturobernalg requested a review from ok2c February 20, 2026 07:22
if (entity != null) {
throw new ProtocolException("Response " + status + " must not enclose an entity");
}
if (status >= 100 && status < 200
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg This is unnecessary. 1xx responses never get processed by the protocol interceptors. Their life-cycle is completely separate.

@arturobernalg
Copy link
Member Author

@ok2c your absolutely right. sorry about that. And you had already mentioned it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments