Cosminexus アプリケーションサーバ V8 機能解説 基本・開発編(Webコンテナ)
エラーステータスコードとエラーページとの対応づけは,次のファイルで定義します。
表3-20 エラーページと対応づけできるエラーステータスコード
| エラーステータスコード | 説明句 |
|---|---|
| 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 |
エラーページのカスタマイズの例を次に示します。
# ワーカ定義ファイルの記述 worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=host1 worker.worker1.port=8007 worker.worker1.delegate_error_code=404 |
# httpsd.confの記述# # : ErrorDocument 404 /missing.html |
All Rights Reserved. Copyright (C) 2008, 2011, Hitachi, Ltd.