Permalink
Browse files

Added custom templates for errors. Will allow clients to respond to e…

…rrors in a graceful way. fixes #24
  • Loading branch information...
1 parent 649957e commit 7a068c44cef251a4d7690bbcfe8a8313d02b719b Paddy Foran committed Jul 11, 2011
Showing with 14 additions and 0 deletions.
  1. +6 −0 app.yaml
  2. +4 −0 error.html
  3. +4 −0 hard_quota.html
View
@@ -6,6 +6,12 @@ api_version: 1
builtins:
- appstats: on
+error_handlers:
+- file: default_error.html
+
+- error_code: over_quota
+ file: hard_quota.html
+
handlers:
- url: /js
static_dir: js
View
@@ -0,0 +1,4 @@
+{
+code: 500,
+message: "Something went wrong on the server."
+}
View
@@ -0,0 +1,4 @@
+{
+code: 500,
+message: "We're over App Engine's quota. Oops! Don't worry, we'll refund the people who paid to use the service over our quota levels. Sorry for the inconvenience!"
+}

0 comments on commit 7a068c4

Please sign in to comment.