From 6016ec94feed93b85e376764bfd1608f785fa8e6 Mon Sep 17 00:00:00 2001
From: Thomas Porzelt Your browser sent a request that this server could not understand. This server could not verify that you are authorized to access the resource requested. Insert coint. You don't have permission to access the requested resource. The requested resource was not found. The requested method is not allowed for this resource. An appropriate representation of the requested resource could not be found. This server could not verify that you are authorized to access the resource requested. Timeout waiting for the request. The request could not be completed due to a conflict with the current state of the requested resource. The requested resource is no longer available on this server and there is no forwarding address. The requested method requires a valid Content-Length header. The precondition for this request was not met. Your client sent too much data for this request. The requested URL's length exceeds the configured limit of this server. The supplied request data is not in a format acceptable for processing by this resource. The requested part of this resource was not found. The expectation given in the Expect request-header field could not be met by this server. I have come here to brew coffee and kick ass... and I'm all out of coffee. There are too many connections from your internet address. The request could not be processed. The requested resource is currently locked. The method could not be performed on the resource because the requested action depended on another action and that other action failed. This resource should be accessed via SSL. The server encountered an internal error and was unable to complete your request.
"
+ "Either you supplied the wrong credentials (e.g. bad password), or your browser doesn't understand how to supply the credentials required.
Make sure you entered the correct URL in your browser.
"
+ "Either you supplied the wrong credentials (e.g. bad password), or your browser doesn't understand how to supply the credentials required.
"
+ "Please remove all references to this resource.
The proxy server received an invalid response from an upstream server.
"); + case 503: SET_LEN_AND_RETURN_STR("The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Please try again later.
The proxy server did not receive a timely response from the upstream server.
"); + case 505: SET_LEN_AND_RETURN_STR("The requested http version is not supported by this server.
"); + case 506: SET_LEN_AND_RETURN_STR("A variant for the requested resource is itself a negotiable resource.
The request could not be fullfilled because of insufficient storage available on the server."); + case 509: SET_LEN_AND_RETURN_STR("The available bandwidth limit for this resource has been reached.
"); + case 510: SET_LEN_AND_RETURN_STR("A mandatory extension policy in the request is not accepted by the server for this resource.
"); + + /* unknown */ + default: SET_LEN_AND_RETURN_STR(""); + } +} void li_response_send_error_page(liConnection *con) { - gchar status_str[3]; + liVRequest *vr = con->mainvr; + gchar status_code[3]; guint len; gchar *str; + GString *html; + + html = g_string_sized_new(1023); - li_chunkqueue_append_mem(con->out, CONST_STR_LEN( - "\n" - "\n" - "\n" - " \n" - "")); + g_string_append_len(html, GSTR_LEN(CORE_OPTION(LI_CORE_OPTION_SERVER_TAG).string)); + g_string_append_len(html, CONST_STR_LEN( + "
\n" + "