KAEDE Hack blog

JavaScript 中心に ライブラリなどの使い方を解説する技術ブログ。

web words

web技術の用語まとめ

HTTP ステータスコードの400番台と500番台の違い

www5.plala.or.jp

正常コード

100s: 案内

200s: 正常処理

300s: 移転処理

違うアドレスに移動,一時的に別のアドレスに移動,他のページを参照してほしい, アクセスはできたけどdocumentが更新されない?,proxyが違うからアクセス不許可, アドレスが一時的に別のアドレスに属している

400s

400: Bad Request: requestがおかしい

401: UnAuth: authに失敗

402: Pay Require: 未実装だが課金コンテンツ?

403: Forbidden: アクセス権がない(何で判断してる?)

404: File Not Found: 該当ページがない

405: Method Not Allowed

406: Not Accessble: Access Headerにはじかれた

407: Proxy Auth Required

....

Requestがダメって話かな?

500s

500: internal server error

501: Not Implemented

RFC

RFC, 標準化機構を読めと教えてもらった

tools.ietf.org

charpter 6.5 が4xxのところだ

   The 4xx (Client Error) class of status code indicates that the client
   seems to have erred.  Except when responding to a HEAD request, the
   server SHOULD send a representation containing an explanation of the
   error situation, and whether it is a temporary or permanent
   condition.  These status codes are applicable to any request method.
   User agents SHOULD display any included representation to the user.

   The 5xx (Server Error) class of status code indicates that the server
   is aware that it has erred or is incapable of performing the
   requested method.  Except when responding to a HEAD request, the
   server SHOULD send a representation containing an explanation of the
   error situation, and whether it is a temporary or permanent

4xxがクライアントエラー, request method, client seem to have erred.

5xxがサーバーエラー, incapable of perfoming the requested method.