rest: Do not log 404s as unhandled exceptions