Documentation

HttpException extends RuntimeException
in package
implements HttpExceptionInterface

HttpException.

Tags
author

Kris Wallsmith kris@symfony.com

Interfaces, Classes and Traits

HttpExceptionInterface
Interface for HTTP error exceptions.

Table of Contents

$headers  : mixed
$statusCode  : mixed
__construct()  : mixed
getHeaders()  : array<string|int, mixed>
Returns response headers.
getStatusCode()  : int
Returns the status code.
setHeaders()  : mixed
Set response headers.

Properties

Methods

__construct()

public __construct(int $statusCode[, string|null $message = '' ][, Throwable|null $previous = null ][, array<string|int, mixed> $headers = [] ], int|null $code) : mixed
Parameters
$statusCode : int
$message : string|null = ''
$previous : Throwable|null = null
$headers : array<string|int, mixed> = []
$code : int|null
Return values
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
int

setHeaders()

Set response headers.

public setHeaders(array<string|int, mixed> $headers) : mixed
Parameters
$headers : array<string|int, mixed>

Response headers

Return values
mixed

Search results