I'm looking for something like HttpResponseCode::FileNotFound
=> 404, HttpResponseCode::OK
=> 200
I've searched for "php http status codes list", "php http status codes enum" and couldnt find anything.
I'm looking for something like HttpResponseCode::FileNotFound
=> 404, HttpResponseCode::OK
=> 200
I've searched for "php http status codes list", "php http status codes enum" and couldnt find anything.
要搜索的词条是"php http status code const",它会将您带到http://symfony.com/blog/new-in-symfony-2-4-using-constants-for-http-status-code-它有\Illuminate\Http\Response::HTTP_NOT_FOUND
和\Illuminate\Http\Response::HTTP_OK
等.
List is here - https://github.com/symfony/HttpFoundation/blob/master/Response.php