mardi 8 mars 2016

Get HTTP status text in PHP or Laravel

In Chrome inspector when I hit a 404 I see:

Request URL:http://ift.tt/1QKl4SZ
Request Method:GET
Status Code:404 Not Found
Remote Address:192.X.X.X:80

So far I've only been able to get the numeric code, "404" by using $exception->getStatusCode()

Is there a way to get the text description of "Not Found" in PHP (or Laravel)?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire