サイトで設定しているエラードキュメントとは別に、URL毎にエラードキュメントを設定する方法。
バックエンドの障害発生時にapi特有のエラー内容を記述したxmlを返したい場合に利用中。
ErrorDocument 503 /errordocument/error_503.html
<LocationMatch "/api/aaa">
ErrorDocument 503 /errordocuments/error_503_aaa.xml
</LocationMatch>
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
サイトで設定しているエラードキュメントとは別に、URL毎にエラードキュメントを設定する方法。
バックエンドの障害発生時にapi特有のエラー内容を記述したxmlを返したい場合に利用中。
ErrorDocument 503 /errordocument/error_503.html
<LocationMatch "/api/aaa">
ErrorDocument 503 /errordocuments/error_503_aaa.xml
</LocationMatch>
Register as a new user and use Qiita more conveniently
Go to list of users who liked