Documentation

ErrorResponse
in package

Error response class.

Table of Contents

Properties

$code  : string|null
$detail  : string
$errors  : array<string|int, mixed>|mixed|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.

$errors

public array<string|int, mixed>|mixed|null $errors

A list of explicit error details.

$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, mixed> $serverResponse) : mixed
Parameters
$serverResponse : array<string|int, mixed>

Raw server response array.


        
On this page

Search results