Network Services API
2.75.00.17
ti
net
http
http.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015-2018, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
40
#ifndef ti_net_http_HTTP__include
41
#define ti_net_http_HTTP__include
42
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
49
50
/* HTTP Status Codes */
51
enum
HTTP_STATUS_CODE
{
52
HTTP_SC_CONTINUE
= 100,
53
HTTP_SC_SWITCHING_PROTOCOLS
= 101,
55
HTTP_SC_OK
= 200,
56
HTTP_SC_CREATED
= 201,
57
HTTP_SC_ACCEPTED
= 202,
58
HTTP_SC_NON_AUTHORITATIVE_INFORMATION
= 203,
59
HTTP_SC_NO_CONTENT
= 204,
60
HTTP_SC_RESET_CONTENT
= 205,
61
HTTP_SC_PARTIAL_CONTENT
= 206,
62
HTTP_SC_MULTI_STATUS
= 207,
64
HTTP_SC_MULTIPLE_CHOICES
= 300,
65
HTTP_SC_MOVED_PERMANENTLY
= 301,
66
HTTP_SC_FOUND
= 302,
67
HTTP_SC_SEE_OTHER
= 303,
68
HTTP_SC_NOT_MODIFIED
= 304,
69
HTTP_SC_TEMPORARY_REDIRECT
= 307,
71
HTTP_SC_BAD_REQUEST
= 400,
72
HTTP_SC_UNAUTHORIZED
= 401,
73
HTTP_SC_PAYMENT_REQUIRED
= 402,
74
HTTP_SC_FORBIDDEN
= 403,
75
HTTP_SC_NOT_FOUND
= 404,
76
HTTP_SC_METHOD_NOT_ALLOWED
= 405,
77
HTTP_SC_NOT_ACCEPTABLE
= 406,
78
HTTP_SC_PROXY_AUTHENTICATION_REQUIRED
= 407,
79
HTTP_SC_REQUEST_TIMEOUT
= 408,
80
HTTP_SC_CONFLICT
= 409,
81
HTTP_SC_GONE
= 410,
82
HTTP_SC_LENGTH_REQUIRED
= 411,
83
HTTP_SC_PRECONDITION_FAILED
= 412,
84
HTTP_SC_REQUEST_ENTITY_TOO_LARGE
= 413,
85
HTTP_SC_REQUEST_URI_TOO_LONG
= 414,
86
HTTP_SC_UNSUPPORTED_MEDIA_TYPE
= 415,
87
HTTP_SC_REQUESTED_RANGE_NOT_SATISFAIABLE
= 416,
88
HTTP_SC_EXPECTATION_FAILED
= 417,
89
HTTP_SC_UNPROCESSABLE_ENTITY
= 422,
90
HTTP_SC_UPGRADE_REQUIRED
= 426,
91
HTTP_SC_TOO_MANY_REQUESTS
= 429,
93
HTTP_SC_INTERNAL_SERVER_ERROR
= 500,
94
HTTP_SC_NOT_IMPLEMENTED
= 501,
95
HTTP_SC_BAD_GATEWAY
= 502,
96
HTTP_SC_SERVICE_UNAVAILABLE
= 503,
97
HTTP_SC_GATEWAY_TIMEOUT
= 504,
98
HTTP_SC_HTTP_VERSION_NOT_SUPPORTED
= 505,
100
HTTP_SC_STATUS_CODE_END
= 600
101
};
102
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
HTTP_SC_UNAUTHORIZED
Definition:
http.h:72
HTTP_SC_REQUEST_URI_TOO_LONG
Definition:
http.h:85
HTTP_SC_TOO_MANY_REQUESTS
Definition:
http.h:91
HTTP_SC_GONE
Definition:
http.h:81
HTTP_SC_NO_CONTENT
Definition:
http.h:59
HTTP_SC_INTERNAL_SERVER_ERROR
Definition:
http.h:93
HTTP_SC_NOT_MODIFIED
Definition:
http.h:68
HTTP_SC_BAD_REQUEST
Definition:
http.h:71
HTTP_SC_UNPROCESSABLE_ENTITY
Definition:
http.h:89
HTTP_SC_PAYMENT_REQUIRED
Definition:
http.h:73
HTTP_SC_FOUND
Definition:
http.h:66
HTTP_SC_METHOD_NOT_ALLOWED
Definition:
http.h:76
HTTP_SC_SEE_OTHER
Definition:
http.h:67
HTTP_SC_CONFLICT
Definition:
http.h:80
HTTP_SC_REQUESTED_RANGE_NOT_SATISFAIABLE
Definition:
http.h:87
HTTP_SC_PRECONDITION_FAILED
Definition:
http.h:83
HTTP_SC_RESET_CONTENT
Definition:
http.h:60
HTTP_SC_MULTI_STATUS
Definition:
http.h:62
HTTP_SC_REQUEST_ENTITY_TOO_LARGE
Definition:
http.h:84
HTTP_SC_MOVED_PERMANENTLY
Definition:
http.h:65
HTTP_SC_NON_AUTHORITATIVE_INFORMATION
Definition:
http.h:58
HTTP_SC_CREATED
Definition:
http.h:56
HTTP_SC_OK
Definition:
http.h:55
HTTP_SC_REQUEST_TIMEOUT
Definition:
http.h:79
HTTP_SC_PROXY_AUTHENTICATION_REQUIRED
Definition:
http.h:78
HTTP_SC_BAD_GATEWAY
Definition:
http.h:95
HTTP_SC_SERVICE_UNAVAILABLE
Definition:
http.h:96
HTTP_SC_SWITCHING_PROTOCOLS
Definition:
http.h:53
HTTP_SC_UPGRADE_REQUIRED
Definition:
http.h:90
HTTP_STATUS_CODE
HTTP_STATUS_CODE
Definition:
http.h:51
HTTP_SC_MULTIPLE_CHOICES
Definition:
http.h:64
HTTP_SC_UNSUPPORTED_MEDIA_TYPE
Definition:
http.h:86
HTTP_SC_LENGTH_REQUIRED
Definition:
http.h:82
HTTP_SC_TEMPORARY_REDIRECT
Definition:
http.h:69
HTTP_SC_CONTINUE
Definition:
http.h:52
HTTP_SC_ACCEPTED
Definition:
http.h:57
HTTP_SC_STATUS_CODE_END
Definition:
http.h:100
HTTP_SC_NOT_ACCEPTABLE
Definition:
http.h:77
HTTP_SC_HTTP_VERSION_NOT_SUPPORTED
Definition:
http.h:98
HTTP_SC_NOT_IMPLEMENTED
Definition:
http.h:94
HTTP_SC_PARTIAL_CONTENT
Definition:
http.h:61
HTTP_SC_FORBIDDEN
Definition:
http.h:74
HTTP_SC_EXPECTATION_FAILED
Definition:
http.h:88
HTTP_SC_NOT_FOUND
Definition:
http.h:75
HTTP_SC_GATEWAY_TIMEOUT
Definition:
http.h:97
© Copyright 1995-2020
, Texas Instruments Incorporated. All rights reserved.
Trademarks
|
Privacy policy
|
Terms of use
|
Terms of sale