-
-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internet): HTTP random status code (#945)
Co-authored-by: ST-DDT <ST-DDT@gmx.de> Co-authored-by: Piotr Kuczynski <piotr.kuczynski@gmail.com> Co-authored-by: johge201 <johge201@student.liu.se> Co-authored-by: Sofia Bertmar <sofbe892@student.liu.se> Co-authored-by: Sofia Bertmar <58030654+sofbe@users.noreply.github.com> Co-authored-by: Shinigami <chrissi92@hotmail.de>
- Loading branch information
1 parent
b0cdf29
commit 05f555b
Showing
5 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status | ||
|
||
export default { | ||
informational: [100, 101, 102, 103], | ||
success: [200, 201, 202, 203, 204, 205, 206, 207, 208, 226], | ||
redirection: [300, 301, 302, 303, 304, 305, 306, 307, 308], | ||
clientError: [ | ||
400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, | ||
415, 416, 417, 418, 421, 422, 423, 424, 425, 426, 428, 429, 431, 451, | ||
], | ||
serverError: [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters