aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-31 22:28:42 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-31 22:28:42 +0000
commit8e7bccd3c667dcf7cd7cd0bf5036dd6c4d0eb950 (patch)
treef29fe535420283fdd9ca351b82b0001f1a6827dc /main/http.c
parent805af77dd8e9febb4550d96633e00c8c2e271109 (diff)
Merged revisions 134983 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r134983 | kpfleming | 2008-07-31 17:18:11 -0500 (Thu, 31 Jul 2008) | 3 lines accomodate users who seem to lack a sense of humor :-) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135016 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/http.c b/main/http.c
index 1a7579761..e6256b3df 100644
--- a/main/http.c
+++ b/main/http.c
@@ -228,12 +228,12 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser,
out404:
return ast_http_error((*status = 404),
(*title = ast_strdup("Not Found")),
- NULL, "Nothing to see here. Move along.");
+ NULL, "The requested URL was not found on this server.");
out403:
return ast_http_error((*status = 403),
(*title = ast_strdup("Access Denied")),
- NULL, "Sorry, I cannot let you do that, Dave.");
+ NULL, "You do not have permission to access the requested URL.");
}
@@ -480,7 +480,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
snprintf(buf, sizeof(buf), "Location: %s\r\n", redirect->dest);
out = ast_http_error((*status = 302),
(*title = ast_strdup("Moved Temporarily")),
- buf, "There is no spoon...");
+ buf, "Redirecting...");
break;
}
@@ -544,7 +544,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
if (method == AST_HTTP_POST && !astman_is_authed(manid_from_vars(vars))) {
out = ast_http_error((*status = 403),
(*title = ast_strdup("Access Denied")),
- NULL, "Sorry, I cannot let you do that, Dave.");
+ NULL, "You do not have permission to access the requested URL.");
} else if (urih) {
*static_content = urih->static_content;
out = urih->callback(ser, urih, uri, method, vars, headers, status, title, contentlength);