mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
## Problem ## Summary of changes --------- Co-authored-by: Alexander Bayandin <alexander@neon.tech>
20 lines
403 B
Python
20 lines
403 B
Python
import enum
|
|
|
|
__all__ = ['ErrorCodes']
|
|
|
|
class ErrorCodes(enum.IntEnum):
|
|
NO_ERROR = 0
|
|
PROTOCOL_ERROR = 1
|
|
INTERNAL_ERROR = 2
|
|
FLOW_CONTROL_ERROR = 3
|
|
SETTINGS_TIMEOUT = 4
|
|
STREAM_CLOSED = 5
|
|
FRAME_SIZE_ERROR = 6
|
|
REFUSED_STREAM = 7
|
|
CANCEL = 8
|
|
COMPRESSION_ERROR = 9
|
|
CONNECT_ERROR = 10
|
|
ENHANCE_YOUR_CALM = 11
|
|
INADEQUATE_SECURITY = 12
|
|
HTTP_1_1_REQUIRED = 13
|