Skip to content

Conversation

@JakeChampion
Copy link
Contributor

previously this error message said "Request constructor", which was misleading as this error is within the Response constructor.

I've used the same error message text as Firefox does.

We could modify the error message some more to mention which status codes are 'null body' statuses, as a null body status is a status that is 101, 204, 205, or 304, and the user reading the error message may not know what is meant by null body status.

@JakeChampion JakeChampion changed the title change error message which is given when a response has a body and a status that is 204, 205, or 304 Change error message which is given when constructing a Response instance with a body and a null body status Mar 22, 2022
Copy link
Contributor

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

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

Oops, great catch—thank you! <3

…status that is 204, 205, or 304.

previously this error message said "Request constructor", which was misleading as this error is within the Response constructor.

I've used the same error message text as Firefox does.

We could modify the error message some more to mention which status codes are 'null body' statuses, as a null body status is a status that is 101, 204, 205, or 304, and the user reading the error message may not know what is meant by `null body status`.
@JakeChampion
Copy link
Contributor Author

@tschneidereit I rebased this and now it all passes 🎉

Copy link
Contributor

@tschneidereit tschneidereit left a comment

Choose a reason for hiding this comment

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

Thank you!

@tschneidereit tschneidereit merged commit 1084131 into fastly:main May 18, 2022
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