note 114581 added to function.http-response-code
| From: | Anonymous | Date: | Sat, 08 Mar 2014 19:23:18 +0000 |
| Subject: | note 114581 added to function.http-response-code | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198835@lists.php.net to get a copy of this message | ||
You can also create a enum by extending the SplEnum class.
<?php
/** HTTP status codes */
class HttpStatusCode extends SplEnum {
const __default = self::OK;
const SWITCHING_PROTOCOLS = 101;
const OK = 200;
const CREATED = 201;
const ACCEPTED = 202;
const NONAUTHORITATIVE_INFORMATION = 203;
const NO_CONTENT = 204;
const RESET_CONTENT = 205;
const PARTIAL_CONTENT = 206;
const MULTIPLE_CHOICES = 300;
const MOVED_PERMANENTLY = 301;
const MOVED_TEMPORARILY = 302;
const SEE_OTHER = 303;
const NOT_MODIFIED = 304;
const USE_PROXY = 305;
const BAD_REQUEST = 400;
const UNAUTHORIZED = 401;
const PAYMENT_REQUIRED = 402;
const FORBIDDEN = 403;
const NOT_FOUND = 404;
const METHOD_NOT_ALLOWED = 405;
const NOT_ACCEPTABLE = 406;
const PROXY_AUTHENTICATION_REQUIRED = 407;
const REQUEST_TIMEOUT = 408;
const CONFLICT = 408;
const GONE = 410;
const LENGTH_REQUIRED = 411;
const PRECONDITION_FAILED = 412;
const REQUEST_ENTITY_TOO_LARGE = 413;
const REQUESTURI_TOO_LARGE = 414;
const UNSUPPORTED_MEDIA_TYPE = 415;
const REQUESTED_RANGE_NOT_SATISFIABLE = 416;
const EXPECTATION_FAILED = 417;
const IM_A_TEAPOT = 418;
const INTERNAL_SERVER_ERROR = 500;
const NOT_IMPLEMENTED = 501;
const BAD_GATEWAY = 502;
const SERVICE_UNAVAILABLE = 503;
const GATEWAY_TIMEOUT = 504;
const HTTP_VERSION_NOT_SUPPORTED = 505;
}
----
Server IP: 212.63.222.76
Probable Submitter: 85.228.30.128
----
Manual Page -- http://php.net/manual/en/function.http-response-code.php
Edit -- https://master.php.net/note/edit/114581
Del: integrated -- https://master.php.net/note/delete/114581/integrated
Del: useless -- https://master.php.net/note/delete/114581/useless
Del: bad code -- https://master.php.net/note/delete/114581/bad+code
Del: spam -- https://master.php.net/note/delete/114581/spam
Del: non-english -- https://master.php.net/note/delete/114581/non-english
Del: in docs -- https://master.php.net/note/delete/114581/in+docs
Del: other reasons-- https://master.php.net/note/delete/114581
Reject -- https://master.php.net/note/reject/114581
Search -- https://master.php.net/manage/user-notes.php