1 /*
2  * Collie - An asynchronous event-driven network framework using Dlang development
3  *
4  * Copyright (C) 2015-2017  Shanghai Putao Technology Co., Ltd 
5  *
6  * Developer: putao's Dlang team
7  *
8  * Licensed under the Apache-2.0 License.
9  *
10  */
11 module collie.codec.http.errocode;
12 
13 enum HTTPErrorCode {
14 	NO_ERROR = 0,
15 	PROTOCOL_ERROR = 1,
16 	INTERNAL_ERROR = 2,
17 	FLOW_CONTROL_ERROR = 3,
18 	SETTINGS_TIMEOUT = 4,
19 	STREAM_CLOSED = 5,
20 	FRAME_SIZE_ERROR = 6,
21 	REFUSED_STREAM = 7,
22 	CANCEL = 8,
23 	COMPRESSION_ERROR = 9,
24 	CONNECT_ERROR = 10,
25 	ENHANCE_YOUR_CALM = 11,
26 	INADEQUATE_SECURITY = 12,
27 	HTTP_1_1_REQUIRED = 13,
28 	// This code is *NOT* to be used outside of SPDYCodec. Delete this
29 	// when we deprecate SPDY.
30 	_SPDY_INVALID_STREAM = 100,
31 
32 	TIME_OUT = 10000,
33 	REMOTE_CLOSED = 10001,
34 }