2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
5 * Licensed under the Apache License 2.0 (the "License"). You may not use
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
11 #include <openssl/err.h>
12 #include <openssl/httperr.h>
14 #ifndef OPENSSL_NO_ERR
16 static const ERR_STRING_DATA HTTP_str_reasons
[] = {
17 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN
),
18 "asn1 len exceeds max resp len"},
19 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_CONNECT_FAILURE
), "connect failure"},
20 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ERROR_PARSING_ASN1_LENGTH
),
21 "error parsing asn1 length"},
22 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ERROR_PARSING_CONTENT_LENGTH
),
23 "error parsing content length"},
24 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ERROR_PARSING_URL
), "error parsing url"},
25 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ERROR_RECEIVING
), "error receiving"},
26 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_ERROR_SENDING
), "error sending"},
27 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_INCONSISTENT_CONTENT_LENGTH
),
28 "inconsistent content length"},
29 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_MAX_RESP_LEN_EXCEEDED
),
30 "max resp len exceeded"},
31 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_MISSING_ASN1_ENCODING
),
32 "missing asn1 encoding"},
33 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_MISSING_CONTENT_TYPE
),
34 "missing content type"},
35 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_MISSING_REDIRECT_LOCATION
),
36 "missing redirect location"},
37 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP
),
38 "redirection from https to http"},
39 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_REDIRECTION_NOT_ENABLED
),
40 "redirection not enabled"},
41 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_RESPONSE_LINE_TOO_LONG
),
42 "response line too long"},
43 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_SERVER_RESPONSE_PARSE_ERROR
),
44 "server response parse error"},
45 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_SERVER_SENT_ERROR
), "server sent error"},
46 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_SERVER_SENT_WRONG_HTTP_VERSION
),
47 "server sent wrong http version"},
48 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_STATUS_CODE_UNSUPPORTED
),
49 "status code unsupported"},
50 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_TLS_NOT_ENABLED
), "tls not enabled"},
51 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_TOO_MANY_REDIRECTIONS
),
52 "too many redirections"},
53 {ERR_PACK(ERR_LIB_HTTP
, 0, HTTP_R_UNEXPECTED_CONTENT_TYPE
),
54 "unexpected content type"},
60 int ERR_load_HTTP_strings(void)
62 #ifndef OPENSSL_NO_ERR
63 if (ERR_reason_error_string(HTTP_str_reasons
[0].error
) == NULL
)
64 ERR_load_strings_const(HTTP_str_reasons
);