app controller: standardize api limit error handling.

* Refactor api_check to use render_error_page so that api limit errors
  get logged to New Relic for analysis.

* Also standardize json error responses to return the error message in
  `message` instead of `reason`.
This commit is contained in:
evazion
2019-08-24 22:55:36 -05:00
parent a6ed7ca936
commit 491cae6c60
2 changed files with 14 additions and 28 deletions

View File

@@ -1,2 +0,0 @@
<h1>Too Many Requests</h1>
<p>Please rate limit yourself</p>