diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:53:24 +0000 |
commit | b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch) | |
tree | d4d31289c39fc00da064a825df13a0b98ce95b10 /libnetdata/http/http_defs.h | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip |
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnetdata/http/http_defs.h')
-rw-r--r-- | libnetdata/http/http_defs.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/libnetdata/http/http_defs.h b/libnetdata/http/http_defs.h deleted file mode 100644 index 635f703e4..000000000 --- a/libnetdata/http/http_defs.h +++ /dev/null @@ -1,47 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -#ifndef NETDATA_HTTP_DEFS_H -#define NETDATA_HTTP_DEFS_H - -#define HTTP_1_1 " HTTP/1.1" -#define HTTP_HDR_END "\r\n\r\n" -#define HTTP_ENDL "\r\n" - -// HTTP_CODES 1XX -#define HTTP_RESP_SWITCH_PROTO 101 - -// HTTP_CODES 2XX Success -#define HTTP_RESP_OK 200 - -// HTTP_CODES 3XX Redirections -#define HTTP_RESP_MOVED_PERM 301 -#define HTTP_RESP_NOT_MODIFIED 304 -#define HTTP_RESP_REDIR_TEMP 307 -#define HTTP_RESP_REDIR_PERM 308 -#define HTTP_RESP_HTTPS_UPGRADE 399 - -// HTTP_CODES 4XX Client Errors -#define HTTP_RESP_BAD_REQUEST 400 -#define HTTP_RESP_UNAUTHORIZED 401 -#define HTTP_RESP_FORBIDDEN 403 -#define HTTP_RESP_NOT_FOUND 404 -#define HTTP_RESP_METHOD_NOT_ALLOWED 405 -#define HTTP_RESP_METHOD_NOT_ALLOWED_STR "Method Not Allowed" -#define HTTP_RESP_CONFLICT 409 -#define HTTP_RESP_PRECOND_FAIL 412 -#define HTTP_RESP_CONTENT_TOO_LONG 413 -#define HTTP_RESP_CLIENT_CLOSED_REQUEST 499 // nginx's enxtension to the standard - -// HTTP_CODES 5XX Server Errors -#define HTTP_RESP_INTERNAL_SERVER_ERROR 500 -#define HTTP_RESP_INTERNAL_SERVER_ERROR_STR "Internal Server Error" -#define HTTP_RESP_SERVICE_UNAVAILABLE 503 -#define HTTP_RESP_GATEWAY_TIMEOUT 504 -#define HTTP_RESP_BACKEND_RESPONSE_INVALID 591 - -#define HTTP_METHOD_GET (1) -#define HTTP_METHOD_POST (2) -#define HTTP_METHOD_PUT (3) -#define HTTP_METHOD_DELETE (4) - -#endif /* NETDATA_HTTP_DEFS_H */ |