Cosminexus V9 アプリケーションサーバ 機能解説 基本・開発編(Webコンテナ)
エラーステータスコードとエラーページとの対応づけは,次のファイルで定義します。
簡易構築定義ファイルでエラーステータスコードを指定する場合の注意事項を次に示します。
表4-19 エラーページと対応づけできるエラーステータスコード
エラーステータスコード | 説明句 |
---|---|
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
403 | Forbidden |
404 | Not Found |
405 | Method Not Allowed |
406 | Not Acceptable |
407 | Proxy Authentication Required |
408 | Request Time-out |
409 | Conflict |
410 | Gone |
411 | Length Required |
412 | Precondition Failed |
413 | Request Entity Too Large |
414 | Request-URI Too Long |
415 | Unsupported Media Type |
416 | Requested Range Not Satisfiable |
417 | Expectation Failed |
422 | Unprocessible Entity |
423 | Locked |
424 | Failed Dependency |
500 | Internal Server Error |
501 | Not Implemented |
502 | Bad Gateway |
503 | Service Unavailable |
504 | Gateway Time-out |
505 | HTTP Version not supported |
507 | Insufficient Storage |
510 | Not Extended |
httpsd.confでErrorDocumentディレクティブを指定する場合の注意事項を次に示します。
エラーページのカスタマイズの例を次に示します。
: <param> <param-name>worker.list</param-name> <param-value>worker1</param-value> </param> <param> <param-name>worker.worker1.type</param-name> <param-value>ajp13</param-value> </param> <param> <param-name>worker.worker1.host</param-name> <param-value>host1</param-value> </param> <param> <param-name>worker.worker1.delegate_error_code</param-name> <param-value>404</param-value> </param> : |
# httpsd.confの記述# # : ErrorDocument 404 /missing.html |
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.