Skip to content

Commit dfe78b7

Browse files
authored
feat: Add more known API Errors
1 parent fbf5ec1 commit dfe78b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ghastoolkit/octokit/octokit.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
__OCTOKIT_PATH__ = os.path.dirname(os.path.realpath(__file__))
2222

2323
__OCTOKIT_ERRORS__ = {
24-
401: GHASToolkitAuthenticationError("Authentication / Permission Issue")
24+
401: GHASToolkitAuthenticationError("Authentication / Permission Issue"),
25+
403: GHASToolkitAuthenticationError("Authentication / Permission Issue"),
26+
404: GHASToolkitError("Not Found"),
27+
429: GHASToolkitError("Rate limit hit"),
28+
500: GHASToolkitError("GitHub Server Error"),
2529
}
2630

2731

0 commit comments

Comments
 (0)