diff options
Diffstat (limited to 'internal/api/util/response.go')
-rw-r--r-- | internal/api/util/response.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/api/util/response.go b/internal/api/util/response.go index 150d2ac2e..753eaefb8 100644 --- a/internal/api/util/response.go +++ b/internal/api/util/response.go @@ -39,14 +39,17 @@ var ( StatusAcceptedJSON = mustJSON(map[string]string{ "status": http.StatusText(http.StatusAccepted), }) + StatusForbiddenJSON = mustJSON(map[string]string{ + "status": http.StatusText(http.StatusForbidden), + }) StatusInternalServerErrorJSON = mustJSON(map[string]string{ "status": http.StatusText(http.StatusInternalServerError), }) ErrorCapacityExceeded = mustJSON(map[string]string{ - "error": "server capacity exceeded!", + "error": "server capacity exceeded", }) - ErrorRateLimitReached = mustJSON(map[string]string{ - "error": "rate limit reached!", + ErrorRateLimited = mustJSON(map[string]string{ + "error": "rate limit reached", }) EmptyJSONObject = mustJSON("{}") EmptyJSONArray = mustJSON("[]") |