nortmas
11/1/2017 - 3:30 AM

403 and 404

use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

function callback() {
  throw new AccessDeniedHttpException();
  throw new NotFoundHttpException();
}