Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

Commit

Permalink
Update default config for error variable changes.
Browse files Browse the repository at this point in the history
This is part of 18F/api.data.gov#281

The associated changes are on the gatekeeper project's
6d2e6574998ff0478481d7ff7f0b327019006e05 commit.
  • Loading branch information
GUI committed Sep 18, 2015
1 parent c42c274 commit 7de4c3b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,42 +201,45 @@ apiSettings:
</body>
</html>
error_data:
common:
signup_url: "{{base_url}}"
contact_url: "{{base_url}}/contact/"
not_found:
status_code: 404
code: NOT_FOUND
message: The requested URL was not found on this server.
api_key_missing:
status_code: 403
code: API_KEY_MISSING
message: No api_key was supplied. Get one at {{baseUrl}}
message: No api_key was supplied. Get one at {{signup_url}}
api_key_invalid:
status_code: 403
code: API_KEY_INVALID
message: An invalid api_key was supplied. Get one at {{baseUrl}}
message: An invalid api_key was supplied. Get one at {{signup_url}}
api_key_disabled:
status_code: 403
code: API_KEY_DISABLED
message: The api_key supplied has been disabled. Contact us at {{baseUrl}}/contact for assistance
message: The api_key supplied has been disabled. Contact us at {{contact_url}} for assistance
api_key_unverified:
status_code: 403
code: API_KEY_UNVERIFIED
message: The api_key supplied has not been verified yet. Please check your e-mail to verify the API key. Contact us at {{baseUrl}}/contact for assistance
message: The api_key supplied has not been verified yet. Please check your e-mail to verify the API key. Contact us at {{contact_url}} for assistance
api_key_unauthorized:
status_code: 403
code: API_KEY_UNAUTHORIZED
message: The api_key supplied is not authorized to access the given service. Contact us at {{baseUrl}}/contact for assistance
message: The api_key supplied is not authorized to access the given service. Contact us at {{contact_url}} for assistance
over_rate_limit:
status_code: 429
code: OVER_RATE_LIMIT
message: You have exceeded your rate limit. Try again later or contact us at {{baseUrl}}/contact for assistance
message: You have exceeded your rate limit. Try again later or contact us at {{contact_url}} for assistance
internal_server_error:
status_code: 500
code: INTERNAL_SERVER_ERROR
message: An unexpected error has occurred. Try again later or contact us at {{baseUrl}}/contact for assistance
message: An unexpected error has occurred. Try again later or contact us at {{contact_url}} for assistance
https_required:
status_code: 400
code: HTTPS_REQUIRED
message: "Requests must be made over HTTPS. Try accessing the API at: {{httpsUrl}}"
message: "Requests must be made over HTTPS. Try accessing the API at: {{https_url}}"
ban:
user_agents:
ips:
Expand Down

0 comments on commit 7de4c3b

Please sign in to comment.