Allow passing controllers to error and notFound