Fix: RequestHandler not managing 404/403 errors correctly (fixes #1696)