glitchedhttps
glitchedhttps_exitcodes.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
22#ifndef GLITCHEDHTTPS_EXITCODES_H
23#define GLITCHEDHTTPS_EXITCODES_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
32#define GLITCHEDHTTPS_SUCCESS 0
33
38#define GLITCHEDHTTPS_UNINITIALIZED 10
39
43#define GLITCHEDHTTPS_OUT_OF_MEM 100
44
48#define GLITCHEDHTTPS_NULL_ARG 200
49
53#define GLITCHEDHTTPS_INVALID_ARG 300
54
58#define GLITCHEDHTTPS_INVALID_PORT_NUMBER 400
59
63#define GLITCHEDHTTPS_INVALID_HTTP_METHOD_NAME 500
64
69#define GLITCHEDHTTPS_CHILLBUFF_ERROR 600
70
74#define GLITCHEDHTTPS_RESPONSE_PARSE_ERROR 700
75
81#define GLITCHEDHTTPS_EXTERNAL_ERROR 800
82
86#define GLITCHEDHTTPS_OVERFLOW 900
87
91#define GLITCHEDHTTPS_CONNECTION_TO_SERVER_FAILED 1000
92
97#define GLITCHEDHTTPS_HTTP_REQUEST_TRANSMISSION_FAILED 1100
98
102#define GLITCHEDHTTPS_HTTP_GETADDRINFO_FAILED 1200
103
107#define GLITCHEDHTTPS_EMPTY_RESPONSE 1300
108
109#ifdef __cplusplus
110} // extern "C"
111#endif
112
113#endif // GLITCHEDHTTPS_EXITCODES_H