Skip to content

Commit 8588d2e

Browse files
committed
chore: add 499 error for client closed connections
1 parent dc7a838 commit 8588d2e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

api-errors.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@
643643
"short_message": "Unavailable For Legal Reasons",
644644
"long_message": "Unavailable For Legal Reasons"
645645
},
646+
"49900": {
647+
"short_message": "Client Closed Request",
648+
"long_message": "Client closed the connection before the server answered the request"
649+
},
646650
"50000": {
647651
"short_message": "Internal Server Error",
648652
"long_message": "The server encountered an unexpected condition which prevented it from fulfilling the request"

linter/lint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def __str__(self) -> str:
2828
406, 407, 408, 409, 410, 411,
2929
412, 413, 414, 415, 416, 417,
3030
418, 421, 422, 423, 424, 425,
31-
426, 428, 429, 431, 451, 500,
32-
501, 502, 503, 504, 505, 506,
33-
507, 508, 510, 511
31+
426, 428, 429, 431, 451, 499,
32+
500, 501, 502, 503, 504, 505,
33+
506, 507, 508, 510, 511
3434
]
3535

3636

0 commit comments

Comments
 (0)