view('pages.errors.maintenance'); } if ($exception instanceof AuthenticationException) { return (new ApiResponseObject('Authentication', 'To keep your account secure we need to re-validate your account', HttpStatus::ACCESS_UNAUTHORISED))->handler(); } return parent::render($request, $exception); } }