Why does Chrome mark a "204 No Content" response red?
Asked Answered
B

0

9

I'm very confused by chrome, it marks a "204 No Content" response red in the request list but at the same time has a green point for the "Status Code". I'm sure 204 isn't an error so what happens here?

I've created a new script to ensure that there is nothing else going on:

<?php

http_response_code(204);

And the developer tools look like this:

enter image description here

I'm using chrome 34.0.1847.116 m, it's not red in Firefox by the way.

Barbellate answered 28/4, 2014 at 11:31 Comment(2)
I'm using google chrome 39.0.2171.95 m and I'm not getting the red in the listing when I run above PHP script on my local web server. I imagine that someone must have realized that the red in this case was a mistake and corrected it. I still get the red in the listing for a 404 status message as one would expect.Handball
Im using version 119.0.6045.159 (Official Build) (arm64) and it is throwing errors for 204 No Content. Which is strange because this is a response that indicates a "successful" HTTP/2 response.Nicolenicolea

© 2022 - 2024 — McMap. All rights reserved.