added a missing res param to swe.notFound which was causing errors