我正在寻找HttpResponseCode::FileNotFound
=> 404, HttpResponseCode::OK
=> 200
我已经搜索了"php http状态码列表","php http状态码enum",找不到任何东西
要搜索的术语是"php http状态码const",这导致您到http://symfony.com/blog/new-in-symfony-2-4-using-constants-for-http-status-code -它有IlluminateHttpResponse::HTTP_NOT_FOUND
和IlluminateHttpResponse::HTTP_OK
等。
列表在这里- https://github.com/symfony/HttpFoundation/blob/master/Response.php