View | Details | Raw Unified | Return to bug 58985
Collapse All | Expand All

(-)include/httpd.h (+1 lines)
Lines 530-535 Link Here
530
#define HTTP_PRECONDITION_REQUIRED           428
530
#define HTTP_PRECONDITION_REQUIRED           428
531
#define HTTP_TOO_MANY_REQUESTS               429
531
#define HTTP_TOO_MANY_REQUESTS               429
532
#define HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
532
#define HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
533
#define HTTP_UNAVAILABLE_FOR_LEGAL_REASONS   451
533
#define HTTP_INTERNAL_SERVER_ERROR           500
534
#define HTTP_INTERNAL_SERVER_ERROR           500
534
#define HTTP_NOT_IMPLEMENTED                 501
535
#define HTTP_NOT_IMPLEMENTED                 501
535
#define HTTP_BAD_GATEWAY                     502
536
#define HTTP_BAD_GATEWAY                     502
(-)modules/http/http_protocol.c (-1 / +28 lines)
Lines 146-152 Link Here
146
    "429 Too Many Requests",
146
    "429 Too Many Requests",
147
    NULL, /* 430 */
147
    NULL, /* 430 */
148
    "431 Request Header Fields Too Large",
148
    "431 Request Header Fields Too Large",
149
#define LEVEL_500 71
149
    NULL, /* 432 */
150
    NULL, /* 433 */
151
    NULL, /* 434 */
152
    NULL, /* 435 */
153
    NULL, /* 436 */
154
    NULL, /* 437 */
155
    NULL, /* 438 */
156
    NULL, /* 439 */
157
    NULL, /* 440 */
158
    NULL, /* 441 */
159
    NULL, /* 442 */
160
    NULL, /* 443 */
161
    NULL, /* 444 */
162
    NULL, /* 445 */
163
    NULL, /* 446 */
164
    NULL, /* 447 */
165
    NULL, /* 448 */
166
    NULL, /* 449 */
167
    NULL, /* 450 */
168
    "451 Unavailable For Legal Reasons",
169
#define LEVEL_500 91
150
    "500 Internal Server Error",
170
    "500 Internal Server Error",
151
    "501 Not Implemented",
171
    "501 Not Implemented",
152
    "502 Bad Gateway",
172
    "502 Bad Gateway",
Lines 1298-1303 Link Here
1298
               "request as the requested host name does not match\n"
1318
               "request as the requested host name does not match\n"
1299
               "the Server Name Indication (SNI) in use for this\n"
1319
               "the Server Name Indication (SNI) in use for this\n"
1300
               "connection.</p>\n");
1320
               "connection.</p>\n");
1321
    case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:
1322
        s1 = apr_pstrcat(p,
1323
                         "<p>Access to ",
1324
                         ap_escape_html(r->pool, r->uri),
1325
                         "\nhas been denied for legal reasons.<br />\n",
1326
                         NULL);
1327
        return(add_optional_notes(r, s1, "error-notes", "</p>\n"));
1301
    default:                    /* HTTP_INTERNAL_SERVER_ERROR */
1328
    default:                    /* HTTP_INTERNAL_SERVER_ERROR */
1302
        /*
1329
        /*
1303
         * This comparison to expose error-notes could be modified to
1330
         * This comparison to expose error-notes could be modified to

Return to bug 58985