UnprocessableEntityHttpException
extends HttpException
in package
HttpException.
Tags
Table of Contents
Properties
- $headers : array<string|int, mixed>
- $statusCode : int
Methods
- __construct() : mixed
- getHeaders() : array<string|int, mixed>
- Returns response headers.
- getStatusCode() : int
- Returns the status code.
- setHeaders() : mixed
Properties
$headers
private
array<string|int, mixed>
$headers
$statusCode
private
int
$statusCode
Methods
__construct()
public
__construct([string $message = '' ][, Throwable $previous = null ][, int $code = 0 ][, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
- $message : string = ''
- $previous : Throwable = null
- $code : int = 0
- $headers : array<string|int, mixed> = []
getHeaders()
Returns response headers.
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getStatusCode()
Returns the status code.
public
getStatusCode() : int
Return values
intsetHeaders()
public
setHeaders(array<string|int, mixed> $headers) : mixed
Parameters
- $headers : array<string|int, mixed>