summaryrefslogtreecommitdiff
path: root/internal/api/util/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/util/response.go')
-rw-r--r--internal/api/util/response.go9
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("[]")