Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added error handlers for #4 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,23 @@ handlers:
http_headers:
X-UA-Compatible: "IE=edge"
#Content-Security-Policy: "script-src 'self'; object-src 'self'"

# Error Handling
# This only handles 3 specific errors, not more generic ones like 404 or 500 errors.

This comment was marked as abuse.


error_handlers:

# Served if any of the 3 error codes below are hit and a file is not specified.
- file: default_error.html

This comment was marked as abuse.


# Served if the app has exceeded a resource quota
- error_code: over_quota
file: over_quota.html

# Served if the client is blocked by your app's DoS Protection configuration

This comment was marked as abuse.

- error_code: dos_api_denial
file: dos_api_denial.html

# Served if a deadline is reached before there is a response from your app

This comment was marked as abuse.

- error_code: timeout
file: timeout.html