Skip to content

Commit 9a00f2e

Browse files
authored
Add UNDER_MAINTENANCE (#12)
1 parent 9e9af49 commit 9a00f2e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

index.node.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/codes.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ export declare enum codes {
1616
INPUT_LIST_MAX = "INPUT_LIST_MAX",
1717
INPUT_INVALID = "INPUT_INVALID",
1818
UNKNOWN_ERROR = "UNKNOWN_ERROR",
19-
MAX_PAYLOAD_EXCEEDED = "MAX_PAYLOAD_EXCEEDED"
19+
MAX_PAYLOAD_EXCEEDED = "MAX_PAYLOAD_EXCEEDED",
20+
UNDER_MAINTENANCE = "UNDER_MAINTENANCE",
2021
}

src/lib/codes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ export enum codes {
4646

4747
// The amount of data requested exceeds the allowable limit.
4848
MAX_PAYLOAD_EXCEEDED = 'MAX_PAYLOAD_EXCEEDED',
49+
50+
// Service is temporarily unavailable due to maintenance
51+
UNDER_MAINTENANCE = 'UNDER_MAINTENANCE',
4952
}

0 commit comments

Comments
 (0)