diff options
-rw-r--r-- | lib/TUWF.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/TUWF.pm b/lib/TUWF.pm index 651c3be..65ba6ce 100644 --- a/lib/TUWF.pm +++ b/lib/TUWF.pm @@ -387,7 +387,7 @@ sub _handle_request { } } - die TUWF::Exception->new(404) if !$han; + $self->resNotFound if !$han; # execute post request handler, if any (no need to bother doing this if the # handler threw a TUWF::Exception like with the after hooks. The @@ -457,7 +457,6 @@ sub _handle_error { utf8 => 400, json => 400, controlchar => 400, - 404 => 404, method => 405, maxpost => 413, }->{$terr} || '500'; |