-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp_status.h
120 lines (109 loc) · 4.04 KB
/
http_status.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
Copyright (c) 2013, [email protected]
https://github.com/daemonna/jobdsigner
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of the {organization} nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef HTTP_STATUS_H
#define HTTP_STATUS_H
#ifdef __cplusplus
extern "C" {
#endif
#define HTTP_STATUS_H
/* Continue */
#define HTTP_STATUS_CONTINUE 100
/* Switching Protocols */
#define HTTP_STATUS_SWITCHING_PROTOCOLS 101
/* OK */
#define HTTP_STATUS_OK 200
/* Created */
#define HTTP_STATUS_CREATED 201
/* Accepted */
#define HTTP_STATUS_ACCEPTED 202
/* Non-Authoritative Information */
#define HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION 203
/* No Content */
#define HTTP_STATUS_NO_CONTENT 204
/* Reset Content */
#define HTTP_STATUS_RESET_CONTENT 205
/* Partial Content */
#define HTTP_STATUS_PARTIAL_CONTENT 206
/* Multiple Choices */
#define HTTP_STATUS_MULTIPLE_CHOICES 300
/* Moved Permanently */
#define HTTP_STATUS_MOVED_PERMANENTLY 301
/* Moved Temporarily */
#define HTTP_STATUS_MOVED_TEMPORARILY 302
/* See Other */
#define HTTP_STATUS_SEE_OTHER 303
/* Not Modified */
#define HTTP_STATUS_NOT_MODIFIED 304
/* Use Proxy */
#define HTTP_STATUS_USE_PROXY 305
/* Bad Request */
#define HTTP_STATUS_BAD_REQUEST 400
/* Unauthorized */
#define HTTP_STATUS_UNAUTHORIZED 401
/* Payment Required */
#define HTTP_STATUS_PAYMENT_REQUIRED 402
/* Forbidden */
#define HTTP_STATUS_FORBIDDEN 403
/* Not Found */
#define HTTP_STATUS_NOT_FOUND 404
/* Method Not Allowed */
#define HTTP_STATUS_METHOD_NOT_ALLOWED 405
/* Not Acceptable */
#define HTTP_STATUS_NOT_ACCEPTABLE 406
/* Proxy Authentication Required */
#define HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED 407
/* Request Time-out */
#define HTTP_STATUS_REQUEST_TIME_OUT 408
/* Conflict */
#define HTTP_STATUS_CONFLICT 409
/* Gone */
#define HTTP_STATUS_GONE 410
/* Length Required */
#define HTTP_STATUS_LENGTH_REQUIRED 411
/* Precondition Failed */
#define HTTP_STATUS_PRECONDITION_FAILED 412
/* Request Entity Too Large */
#define HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE 413
/* Request-URI Too Large */
#define HTTP_STATUS_REQUEST_URI_TOO_LARGE 414
/* Unsupported Media Type */
#define HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE 415
/* Internal Server Error */
#define HTTP_STATUS_INTERNAL_SERVER_ERROR 500
/* Not Implemented */
#define HTTP_STATUS_NOT_IMPLEMENTED 501
/* Bad Gateway */
#define HTTP_STATUS_BAD_GATEWAY 502
/* Service Unavailable */
#define HTTP_STATUS_SERVICE_UNAVAILABLE 503
/* Gateway Time-out */
#define HTTP_STATUS_GATEWAY_TIME_OUT 504
/* HTTP Version not supported */
#define HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED 505
#ifdef __cplusplus
}
#endif
#endif /* HTTP_STATUS_H */