How do I manually initiate the 404 handler in Slim 3? How do I manually initiate the 404 handler in Slim 3? php php

How do I manually initiate the 404 handler in Slim 3?


You need to throw a new instance of \Slim\Exception\NotFoundException

throw new \Slim\Exception\NotFoundException($request, $response);