0
要獲取500錯誤,我使用webapp2顯示自定義錯誤頁面:http://webapp-improved.appspot.com/guide/exceptions.html#exceptions-in-the-wsgi-app。webapp2中超出配額錯誤的自定義錯誤頁面
發生錯誤時始終顯示此頁面。即使出現over_quota錯誤並且app.yaml配置正確。
如何顯示Quota_over錯誤的自定義頁面?
app.yaml中: -
error_handlers:
- error_code: over_quota
file: over_quota.html
否。** OverQuotaError **的狀態碼是500.在App引擎日誌中明確提到它。 https://dl.dropbox.com/u/7384181/OverQuota.png –
嗯,有趣,因爲有關此代碼的最新信息在http://code.google.com/p/googleappengine/issues/detail?id = 961,提到舊的403錯誤代碼被超過配額的503代替,其他500代替。從那時起,沒有提到其他變化。在任何情況下,在您的配置中,您是否驗證了over_quota.html的位置與應用程序的靜態文件處理程序路徑不重疊? –