34
36
handle_error(500, Op, none, Path, ": To many open files");
35
37
handle_error({enfile,_}, Op, _ModData, Path) ->
36
38
handle_error(500, Op, none, Path, ": File table overflow");
37
handle_error(_Reason, Op, _ModData, Path) ->
38
handle_error(500, Op, none, Path, "").
39
handle_error(_Reason, Op, ModData, Path) ->
40
handle_error(404, Op, ModData, Path, "File not found").
40
42
handle_error(StatusCode, Op, none, Path, Reason) ->
41
43
{StatusCode, none, ?NICE("Can't " ++ Op ++ Path ++ Reason)};