Documentation

ErrorResponse
in package

Error response class.

Table of Contents

Properties

$code  : string|null
$detail  : string
$errors  : array<string|int, ErrorItem>|null
$status  : int
$title  : string|null

Methods

__construct()  : mixed

Properties

$code

public string|null $code

A machine-readable code specific to the occurrence of the problem.

$detail

public string $detail

A human-readable explanation specific to the occurrence of the problem.

$status

public int $status

The HTTP status code returned by the server.

$title

public string|null $title

A short, human-readable summary of the problem.

Methods

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
$rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw server response array.

On this page

Search results