Posted By

haru01 on 11/08/08


Tagged

textmate ruby


Versions (?)

ruby http status code


 / Published in: Other
 

  1. HTTP_STATUS_CODES = {
  2. 100 => 'Continue',
  3. 101 => 'Switching Protocols',
  4. 200 => 'OK',
  5. 201 => 'Created',
  6. 202 => 'Accepted',
  7. 203 => 'Non-Authoritative Information',
  8. 204 => 'No Content',
  9. 205 => 'Reset Content',
  10. 206 => 'Partial Content',
  11. 300 => 'Multiple Choices',
  12. 301 => 'Moved Permanently',
  13. 302 => 'Moved Temporarily',
  14. 303 => 'See Other',
  15. 304 => 'Not Modified',
  16. 305 => 'Use Proxy',
  17. 400 => 'Bad Request',
  18. 401 => 'Unauthorized',
  19. 402 => 'Payment Required',
  20. 403 => 'Forbidden',
  21. 404 => 'Not Found',
  22. 405 => 'Method Not Allowed',
  23. 406 => 'Not Acceptable',
  24. 407 => 'Proxy Authentication Required',
  25. 408 => 'Request Time-out',
  26. 409 => 'Conflict',
  27. 410 => 'Gone',
  28. 411 => 'Length Required',
  29. 412 => 'Precondition Failed',
  30. 413 => 'Request Entity Too Large',
  31. 414 => 'Request-URI Too Large',
  32. 415 => 'Unsupported Media Type',
  33. 500 => 'Internal Server Error',
  34. 501 => 'Not Implemented',
  35. 502 => 'Bad Gateway',
  36. 503 => 'Service Unavailable',
  37. 504 => 'Gateway Time-out',
  38. 505 => 'HTTP Version not supported'
  39. }
  40.  

Report this snippet  

You need to login to post a comment.