diff options
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/util/response.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/util/response.go b/internal/api/util/response.go index e22bac545..150d2ac2e 100644 --- a/internal/api/util/response.go +++ b/internal/api/util/response.go @@ -42,6 +42,12 @@ var ( StatusInternalServerErrorJSON = mustJSON(map[string]string{ "status": http.StatusText(http.StatusInternalServerError), }) + ErrorCapacityExceeded = mustJSON(map[string]string{ + "error": "server capacity exceeded!", + }) + ErrorRateLimitReached = mustJSON(map[string]string{ + "error": "rate limit reached!", + }) EmptyJSONObject = mustJSON("{}") EmptyJSONArray = mustJSON("[]") |