Value | Meaning |
---|---|
OK0 | |
ERROR-1 | |
CREDENTIAL_PENDING-101 | |
IGN_HEADER_BLOCK-103 | |
IGN_HTTP_HEADER-105 | |
IGN_PAYLOAD-104 | |
INVALID_ARGUMENT-501 | Invalid argument passed. |
BUFFER_ERROR-502 | Out of buffer space. |
UNSUPPORTED_VERSION-503 | The specified protocol version is not supported. |
WOULDBLOCK-504 | Used as a return value from http2_send_callback and http2_recv_callback to indicate that the operation would block. |
PROTO-505 | General protocol error |
INVALID_FRAME-506 | The frame is invalid. |
EOF-507 | The peer performed a shutdown on the connection. |
DEFERRED-508 | Used as a return value from DataProvider to indicate that data transfer is postponed. See DataProvider for details. |
STREAM_ID_NOT_AVAILABLE-509 | Stream ID has reached the maximum value. Therefore no stream ID is available. |
STREAM_CLOSED-510 | The stream is already closed; or the stream ID is invalid. |
STREAM_CLOSING-511 | RST_STREAM has been added to the outbound queue. The stream is in closing state. |
STREAM_SHUT_WR-512 | The transmission is not allowed for this stream (e.g., a frame with END_STREAM flag set has already sent). |
INVALID_STREAM_ID-513 | The stream ID is invalid. |
INVALID_STREAM_STATE-514 | The state of the stream is not valid (e.g., DATA cannot be sent to the stream if response HEADERS has not been sent). |
DEFERRED_DATA_EXIST-515 | Another DATA frame has already been deferred. |
START_STREAM_NOT_ALLOWED-516 | Starting new stream is not allowed (e.g., GOAWAY has been sent and/or received). |
GOAWAY_ALREADY_SENT-517 | GOAWAY has already been sent. |
INVALID_HEADER_BLOCK-518 | The received frame contains the invalid header block (e.g., There are duplicate header names; or the header names are not encoded in US-ASCII character set and not lower cased; or the header name is zero-length string; or the header value contains multiple in-sequence NUL bytes). |
INVALID_STATE-519 | Indicates that the context is not suitable to perform the requested operation. |
TEMPORAL_CALLBACK_FAILURE-521 | The user callback function failed due to the temporal error. |
FRAME_SIZE_ERROR-522 | The length of the frame is invalid, either too large or too small. |
HEADER_COMP-523 | Header block inflate/deflate error. |
FLOW_CONTROL-524 | Flow control error |
INSUFF_BUFSIZE-525 | Insufficient buffer size given to function. |
PAUSE-526 | Callback was paused by the application |
TOO_MANY_INFLIGHT_SETTINGS-527 | There are too many in-flight SETTING frame and no more transmission of SETTINGS is allowed. |
PUSH_DISABLED-528 | The server push is disabled. |
DATA_EXIST-529 | DATA frame for a given stream has been already submitted and has not been fully processed yet. |
SESSION_CLOSING-530 | The current session is closing due to a connection error or http2_session_terminate_session() is called. |
HTTP_HEADER-531 | Invalid HTTP header field was received and stream is going to be closed. |
FATAL-900 | The errors < FATAL mean that the library is under unexpected condition and processing was terminated (e.g., out of memory). If application receives this error code, it must stop using that Session object and only allowed operation for that object is deallocate it using http2_session_del(). |
NOMEM-901 | Out of memory. This is a fatal error. |
CALLBACK_FAILURE-902 | The user callback function failed. This is a fatal error. |
BAD_PREFACE-903 | Invalid connection preface was received and further processing is not possible. |
Return values used in this library. The code range is [-999, -500], inclusive.