chore: Add rolling window limits to import and export operations

This commit is contained in:
Tom Moor
2022-07-23 16:29:28 +01:00
parent 87b4c9fdba
commit 4bca081faa
2 changed files with 51 additions and 0 deletions

View File

@@ -28,6 +28,14 @@ export function AuthorizationError(
});
}
export function RateLimitExceededError(
message = "Rate limit exceeded for this operation"
) {
return httpErrors(429, message, {
id: "rate_limit_exceeded",
});
}
export function InviteRequiredError(
message = "You need an invite to join this team"
) {