mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import { BaseException } from './base';
|
|
|
|
type Extensions = {
|
|
limit: number;
|
|
reset: Date;
|
|
};
|
|
|
|
export class HitRateLimitException extends BaseException {
|
|
constructor(message: string, extensions: Extensions) {
|
|
super(message, 429, 'REQUESTS_EXCEEDED', extensions);
|
|
}
|
|
}
|