Hatena::Grouptech

id:rx7(@namikawa)の技術メモ このページをアンテナに追加 RSSフィード

過去記事一覧 | Main Blog (元RX-7乗りの適当な日々) | SBM (id:rx7のBookmark)

2010/07/17

RailsでのHTTPステータスコード定義箇所

| RailsでのHTTPステータスコード定義箇所 - id:rx7(@namikawa)の技術メモ を含むブックマーク はてなブックマーク - RailsでのHTTPステータスコード定義箇所 - id:rx7(@namikawa)の技術メモ RailsでのHTTPステータスコード定義箇所 - id:rx7(@namikawa)の技術メモ のブックマークコメント

via. http://github.com/rails/rails/blob/v2.3.8/actionpack/lib/action_controller/status_codes.rb

$ ./script/console -s
Loading production environment in sandbox (Rails 2.3.8)
Any modifications you make will be rolled back on exit

>> ActionController::StatusCodes::STATUS_CODES
=> {500=>"Internal Server Error", 423=>"Locked", 412=>"Precondition Failed", 401=>"Unauthorized", 302=>"Found", 203=>"Non-Authoritative Information", 407=>"Proxy Authentication Required", 501=>"Not Implemented", 424=>"Failed Dependency", 413=>"Request Entity Too Large", 402=>"Payment Required", 303=>"See Other", 226=>"IM Used", 204=>"No Content", 507=>"Insufficient Storage", 408=>"Request Timeout", 100=>"Continue", 502=>"Bad Gateway", 414=>"Request-URI Too Long", 403=>"Forbidden", 304=>"Not Modified", 205=>"Reset Content", 409=>"Conflict", 200=>"OK", 101=>"Switching Protocols", 503=>"Service Unavailable", 426=>"Upgrade Required", 415=>"Unsupported Media Type", 404=>"Not Found", 305=>"Use Proxy", 206=>"Partial Content", 410=>"Gone", 300=>"Multiple Choices", 201=>"Created", 102=>"Processing", 504=>"Gateway Timeout", 416=>"Requested Range Not Satisfiable", 405=>"Method Not Allowed", 207=>"Multi-Status", 510=>"Not Extended", 422=>"Unprocessable Entity", 411=>"Length Required", 400=>"Bad Request", 301=>"Moved Permanently", 202=>"Accepted", 505=>"HTTP Version Not Supported", 417=>"Expectation Failed", 406=>"Not Acceptable", 307=>"Temporary Redirect"}

>> ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE
=> {:not_extended=>510, :unsupported_media_type=>415, :no_content=>204, :locked=>423, :expectation_failed=>417, :processing=>102, :reset_content=>205, :failed_dependency=>424, :unprocessable_entity=>422, :not_found=>404, :ok=>200, :insufficient_storage=>507, :found=>302, :precondition_failed=>412, :not_acceptable=>406, :gateway_timeout=>504, :conflict=>409, :request_entity_too_large=>413, :accepted=>202, :length_required=>411, :use_proxy=>305, :request_timeout=>408, :unauthorized=>401, :temporary_redirect=>307, :requested_range_not_satisfiable=>416, :switching_protocols=>101, :payment_required=>402, :bad_request=>400, :created=>201, :partial_content=>206, :bad_gateway=>502, :non_authoritative_information=>203, :method_not_allowed=>405, :service_unavailable=>503, :not_modified=>304, :see_other=>303, :moved_permanently=>301, :gone=>410, :request_uri_too_long=>414, :continue=>100, :proxy_authentication_required=>407, :multi_status=>207, :upgrade_required=>426, :im_used=>226, :internal_server_error=>500, :http_version_not_supported=>505, :multiple_choices=>300, :forbidden=>403, :not_implemented=>501}
トラックバック - http://tech.g.hatena.ne.jp/rx7/20100717