Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 56b5b4d

Browse files
committed
Add exception for streams forcefully reset
1 parent 1b5444b commit 56b5b4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hyper/http20/exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ class ProtocolError(HTTP20Error):
4040
The remote party violated the HTTP/2 protocol.
4141
"""
4242
pass
43+
44+
45+
class StreamResetError(HTTP20Error):
46+
"""
47+
A stream was forcefully reset by the remote party.
48+
"""
49+
pass

0 commit comments

Comments
 (0)