web words
web技術の用語まとめ
HTTP ステータスコードの400番台と500番台の違い
正常コード
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
501: Not Implemented
RFC
RFC, 標準化機構を読めと教えてもらった
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.