status_code = $status_code; $this->body = $body; } public function is_successful(): bool { return $this->status_code >= 200 && $this->status_code < 300; } }