Constructor.
string $challenge WWW-Authenticate challenge string:
string $message The internal exception message:
\Exception $previous The previous exception:
integer $code The internal exception code:
Overrides HttpException::__construct
public function __construct($challenge, $message = null, \Exception $previous = null, $code = 0) {
$headers = array(
'WWW-Authenticate' => $challenge,
);
parent::__construct(401, $message, $previous, $headers, $code);
}