Skip to content

Commit 2b785e6

Browse files
committed
chore: improve pyrofetch error types
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent 7a595d3 commit 2b785e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/frontend/src/composables/pyroFetch.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export async function usePyroFetch<T>(path: string, options: PyroFetchOptions =
8888
401: "Unauthorized",
8989
403: "Forbidden",
9090
404: "Not Found",
91+
405: "Method Not Allowed",
92+
429: "Too Many Requests",
9193
500: "Internal Server Error",
9294
502: "Bad Gateway",
9395
};

0 commit comments

Comments
 (0)