panther
panther copied to clipboard
$client->request('GET', $nonExistantUrl) returns status 200
I've just spent the last few hours trying to figure out why a url that should be 404'ing is returning 200. I assumed it was a problem with the cache, but after dd'ing the response, clearly it isn't. The response contains the normal 404 response text from symfony, but with a 200 status.
reproduce: use a panther client to make a request to a non-existing url, and see the status is 200, instead of 404.