Bluz\Http\StatusCode
HTTP Status Codes with translation table
- Author: Anton Shevchuk
Synopsis
- // constants
- const CONTINUE = 100;
- const SWITCHING_PROTOCOLS = 101;
- const PROCESSING = 102;
- const OK = 200;
- const CREATED = 201;
- const ACCEPTED = 202;
- const NON_AUTHORITATIVE_INFORMATION = 203;
- const NO_CONTENT = 204;
- const RESET_CONTENT = 205;
- const PARTIAL_CONTENT = 206;
- const MULTI_STATUS = 207;
- const ALREADY_REPORTED = 208;
- const IM_USED = 226;
- const MULTIPLE_CHOICES = 300;
- const MOVED_PERMANENTLY = 301;
- const FOUND = 302;
- const SEE_OTHER = 303;
- const NOT_MODIFIED = 304;
- const USE_PROXY = 305;
- const RESERVED = 306;
- const TEMPORARY_REDIRECT = 307;
- const PERMANENTLY_REDIRECT = 308;
- 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 = 409;
- const GONE = 410;
- const LENGTH_REQUIRED = 411;
- const PRECONDITION_FAILED = 412;
- const REQUEST_ENTITY_TOO_LARGE = 413;
- const REQUEST_URI_TOO_LONG = 414;
- const UNSUPPORTED_MEDIA_TYPE = 415;
- const REQUESTED_RANGE_NOT_SATISFIABLE = 416;
- const EXPECTATION_FAILED = 417;
- const I_AM_A_TEAPOT = 418;
- const MISDIRECTED_REQUEST = 421;
- const UNPROCESSABLE_ENTITY = 422;
- const LOCKED = 423;
- const FAILED_DEPENDENCY = 424;
- const RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425;
- const UPGRADE_REQUIRED = 426;
- const PRECONDITION_REQUIRED = 428;
- const TOO_MANY_REQUESTS = 429;
- const REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
- const UNAVAILABLE_FOR_LEGAL_REASONS = 451;
- const INTERNAL_SERVER_ERROR = 500;
- const NOT_IMPLEMENTED = 501;
- const BAD_GATEWAY = 502;
- const SERVICE_UNAVAILABLE = 503;
- const GATEWAY_TIMEOUT = 504;
- const VERSION_NOT_SUPPORTED = 505;
- const VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506;
- const INSUFFICIENT_STORAGE = 507;
- const LOOP_DETECTED = 508;
- const NOT_EXTENDED = 510;
- const NETWORK_AUTHENTICATION_REQUIRED = 511;
- // members
- public static array $statusTexts = ;
Constants
Name | Value |
---|---|
CONTINUE | 100 |
SWITCHING_PROTOCOLS | 101 |
PROCESSING | 102 |
OK | 200 |
CREATED | 201 |
ACCEPTED | 202 |
NON_AUTHORITATIVE_INFORMATION | 203 |
NO_CONTENT | 204 |
RESET_CONTENT | 205 |
PARTIAL_CONTENT | 206 |
MULTI_STATUS | 207 |
ALREADY_REPORTED | 208 |
IM_USED | 226 |
MULTIPLE_CHOICES | 300 |
MOVED_PERMANENTLY | 301 |
FOUND | 302 |
SEE_OTHER | 303 |
NOT_MODIFIED | 304 |
USE_PROXY | 305 |
RESERVED | 306 |
TEMPORARY_REDIRECT | 307 |
PERMANENTLY_REDIRECT | 308 |
BAD_REQUEST | 400 |
UNAUTHORIZED | 401 |
PAYMENT_REQUIRED | 402 |
FORBIDDEN | 403 |
NOT_FOUND | 404 |
METHOD_NOT_ALLOWED | 405 |
NOT_ACCEPTABLE | 406 |
PROXY_AUTHENTICATION_REQUIRED | 407 |
REQUEST_TIMEOUT | 408 |
CONFLICT | 409 |
GONE | 410 |
LENGTH_REQUIRED | 411 |
PRECONDITION_FAILED | 412 |
REQUEST_ENTITY_TOO_LARGE | 413 |
REQUEST_URI_TOO_LONG | 414 |
UNSUPPORTED_MEDIA_TYPE | 415 |
REQUESTED_RANGE_NOT_SATISFIABLE | 416 |
EXPECTATION_FAILED | 417 |
I_AM_A_TEAPOT | 418 |
MISDIRECTED_REQUEST | 421 |
UNPROCESSABLE_ENTITY | 422 |
LOCKED | 423 |
FAILED_DEPENDENCY | 424 |
RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL | 425 |
UPGRADE_REQUIRED | 426 |
PRECONDITION_REQUIRED | 428 |
TOO_MANY_REQUESTS | 429 |
REQUEST_HEADER_FIELDS_TOO_LARGE | 431 |
UNAVAILABLE_FOR_LEGAL_REASONS | 451 |
INTERNAL_SERVER_ERROR | 500 |
NOT_IMPLEMENTED | 501 |
BAD_GATEWAY | 502 |
SERVICE_UNAVAILABLE | 503 |
GATEWAY_TIMEOUT | 504 |
VERSION_NOT_SUPPORTED | 505 |
VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL | 506 |
INSUFFICIENT_STORAGE | 507 |
LOOP_DETECTED | 508 |
NOT_EXTENDED | 510 |
NETWORK_AUTHENTICATION_REQUIRED | 511 |
Members
public
- $statusTexts
—
array
Status codes translation table
History
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`