private function swishFails()
  {
    return function($isAjax, $code) {
      if ($code == 404) throw new NotFoundHttpException($isAjax, $code);
      throw new ClientErrorsException($isAjax, $code);
    };
  }