aboutsummaryrefslogtreecommitdiff
path: root/src/web/ejabberd_web.erl
diff options
context:
space:
mode:
authorJérôme Sautret <jerome.sautret@process-one.net>2007-06-27 10:01:39 +0000
committerJérôme Sautret <jerome.sautret@process-one.net>2007-06-27 10:01:39 +0000
commit9cd3a6db0742d7923a545bdc043fba5c0393ba33 (patch)
treeddbeeb737332340ff1c01dbf7dcc617b72e4d8a5 /src/web/ejabberd_web.erl
parent* src/mod_muc/mod_muc_room.erl: Include <body/> in MUC invitations (diff)
Unsafe working version of http file transfer
SVN Revision: 798
Diffstat (limited to 'src/web/ejabberd_web.erl')
-rw-r--r--src/web/ejabberd_web.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/web/ejabberd_web.erl b/src/web/ejabberd_web.erl
index a1d6b6592..d0e037d66 100644
--- a/src/web/ejabberd_web.erl
+++ b/src/web/ejabberd_web.erl
@@ -1,7 +1,7 @@
%%%----------------------------------------------------------------------
%%% File : ejabberd_web.erl
%%% Author : Alexey Shchepin <alexey@sevcom.net>
-%%% Purpose :
+%%% Purpose :
%%% Created : 28 Feb 2004 by Alexey Shchepin <alexey@sevcom.net>
%%% Id : $Id$
%%%----------------------------------------------------------------------
@@ -53,7 +53,11 @@ make_xhtml(Els) ->
{"name", Name},
{"value", Value}])).
+error(bad_request) ->
+ {400, [], make_xhtml([?XC("h1", "400 Bad Request")])};
+error(not_allowed) ->
+ {401, [], make_xhtml([?XC("h1", "401 Unauthorized")])};
error(not_found) ->
{404, [], make_xhtml([?XC("h1", "404 Not Found")])};
-error(not_allowed) ->
- {401, [], make_xhtml([?XC("h1", "401 Unauthorized")])}.
+error(internal) ->
+ {500, [], make_xhtml([?XC("h1", "500 Internal Error")])}.