From d5ffc4eb85d71c901c85119cf873e343349e97e2 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 5 Jul 2016 23:20:42 +0200 Subject: Imported Upstream version 2.4.23 --- modules/http/http_protocol.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'modules/http/http_protocol.c') diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 9aa0549b..582d87e3 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -146,7 +146,27 @@ static const char * const status_lines[RESPONSE_CODES] = "429 Too Many Requests", NULL, /* 430 */ "431 Request Header Fields Too Large", -#define LEVEL_500 71 + NULL, /* 432 */ + NULL, /* 433 */ + NULL, /* 434 */ + NULL, /* 435 */ + NULL, /* 436 */ + NULL, /* 437 */ + NULL, /* 438 */ + NULL, /* 439 */ + NULL, /* 440 */ + NULL, /* 441 */ + NULL, /* 442 */ + NULL, /* 443 */ + NULL, /* 444 */ + NULL, /* 445 */ + NULL, /* 446 */ + NULL, /* 447 */ + NULL, /* 448 */ + NULL, /* 449 */ + NULL, /* 450 */ + "451 Unavailable For Legal Reasons", +#define LEVEL_500 91 "500 Internal Server Error", "501 Not Implemented", "502 Bad Gateway", @@ -1298,6 +1318,12 @@ static const char *get_canned_error_string(int status, "request as the requested host name does not match\n" "the Server Name Indication (SNI) in use for this\n" "connection.

\n"); + case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: + s1 = apr_pstrcat(p, + "

Access to ", ap_escape_html(r->pool, r->uri), + "\nhas been denied for legal reasons.
\n", + NULL); + return(add_optional_notes(r, s1, "error-notes", "

\n")); default: /* HTTP_INTERNAL_SERVER_ERROR */ /* * This comparison to expose error-notes could be modified to -- cgit v1.2.3