PHP 8.2.31
Preview: ErrorResponse.php Size: 465 B
/proc/self/root/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/lib/API/REST/ErrorResponse.php

<?php declare(strict_types = 1);

namespace MailPoet\API\REST;

if (!defined('ABSPATH')) exit;


class ErrorResponse extends Response {
  public function __construct(
    int $status,
    string $message,
    string $code,
    array $errors = []
  ) {
    parent::__construct(null, $status);
    $this->set_data([
      'code' => $code,
      'message' => $message,
      'data' => [
        'status' => $status,
        'errors' => $errors,
      ],
    ]);
  }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
3.52 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
420 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
662 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
465 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
243 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
0 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
606 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
304 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).