mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 18:29:20 +02:00
Recognize not_exists error in http_api
This commit is contained in:
parent
0352b97f50
commit
5181983d97
1 changed files with 5 additions and 3 deletions
|
@ -504,6 +504,8 @@ format_result(404, {_Name, _}) ->
|
||||||
|
|
||||||
format_error_result(conflict, Code, Msg) ->
|
format_error_result(conflict, Code, Msg) ->
|
||||||
{409, Code, iolist_to_binary(Msg)};
|
{409, Code, iolist_to_binary(Msg)};
|
||||||
|
format_error_result(not_exists, Code, Msg) ->
|
||||||
|
{404, Code, iolist_to_binary(Msg)};
|
||||||
format_error_result(_ErrorAtom, Code, Msg) ->
|
format_error_result(_ErrorAtom, Code, Msg) ->
|
||||||
{500, Code, iolist_to_binary(Msg)}.
|
{500, Code, iolist_to_binary(Msg)}.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue