onycro

All HTTP Status Codes

Aug 6th, 2011
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1. /*
  2. All currently known HTTP Status Codes (as a PHP array)
  3. socket_read()
  4. */
  5.  
  6. $aHttpCodes = array(
  7.     100 => 'Continue',
  8.     101 => 'Switching Protocols',
  9.     102 => 'Processing',
  10.     122 => 'Request-URI too long',
  11.  
  12.     200 => 'OK',
  13.     201 => 'Created',
  14.     202 => 'Accepted',
  15.     203 => 'Non-Authoritative Information',
  16.     204 => 'No Content',
  17.     205 => 'Reset Content',
  18.     206 => 'Partial Content',
  19.     207 => 'Multi-Status',
  20.     226 => 'IM Used',
  21.  
  22.     300 => 'Multiple Choices',
  23.     301 => 'Moved Permanently',
  24.     302 => 'Found',
  25.     303 => 'See Other',
  26.     304 => 'Not Modified',
  27.     305 => 'Use Proxy',
  28.     306 => 'Reserved',
  29.     307 => 'Temporary Redirect',
  30.  
  31.     400 => 'Bad Request',
  32.     401 => 'Unauthorized',
  33.     402 => 'Payment Required',
  34.     403 => 'Forbidden',
  35.     404 => 'Not Found',
  36.     405 => 'Method Not Allowed',
  37.     406 => 'Not Acceptable',
  38.     407 => 'Proxy Authentication Required',
  39.     408 => 'Request Timeout',
  40.     409 => 'Conflict',
  41.     410 => 'Gone',
  42.     411 => 'Length Required',
  43.     412 => 'Precondition Failed',
  44.     413 => 'Request Entity Too Large',
  45.     414 => 'Request-URI Too Long',
  46.     415 => 'Unsupported Media Type',
  47.     416 => 'Requested Range Not Satisfiable',
  48.     417 => 'Expectation Failed',
  49.     418 => 'Teapot',   
  50.     422 => 'Unprocessable Entity',
  51.     423 => 'Locked',
  52.     424 => 'Failed Dependency',
  53.     425 => 'Unordered Collection',
  54.     426 => 'Upgrade Required',
  55.     444 => 'No Response',
  56.     449 => 'Retry With',
  57.     450 => 'Blocked by Windows Parental Controls',
  58.     499 => 'Client Closed Request',
  59.    
  60.     500 => 'Internal Server Error',
  61.     501 => 'Not Implemented',
  62.     502 => 'Bad Gateway',
  63.     503 => 'Service Unavailable',
  64.     504 => 'Gateway Timeout',
  65.     505 => 'HTTP Version Not Supported',
  66.     506 => 'Variant Also Negotiates',
  67.     507 => 'Insufficient Storage',
  68.     509 => 'Bandwidth Limit Exceeded',
  69.     510 => 'Not Extended'
  70. );
Advertisement
Add Comment
Please, Sign In to add comment