type = $type; $this->status = (int) $status; } /** * Error type. * * @return string */ public function type() { return $this->type; } /** * HTTP status, or 0 when no response was received. * * @return int */ public function status() { return $this->status; } }