diff options
Diffstat (limited to 'packages/types/src')
-rw-r--r-- | packages/types/src/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 03fa2fe8a..9b1731b9d 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -221,3 +221,15 @@ export enum RevertReason { ValueGreaterThanZero = 'VALUE_GREATER_THAN_ZERO', InvalidMsgValue = 'INVALID_MSG_VALUE', } + +export enum StatusCodes { + Success = 200, + NotFound = 404, + InternalError = 500, + MethodNotAllowed = 405, + GatewayTimeout = 504, +} + +export interface FetchRequest extends RequestInit { + timeout?: number; +} |