mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] request blocking by http headers (#2409)
This commit is contained in:
@@ -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("[]")
|
||||
|
Reference in New Issue
Block a user