public function __construct($url, $code = 302) { parent::__construct('', $code, ['Location' => $url]); }
public function __construct($body = '', $code = 200) { parent::__construct($body, $code, ['Content-Type' => 'application/json']); }