<?phpnamespace App\Xapi;/** The answer of an HTTP request (headers in lower case). */final class HttpReply{ /** @param array<string, string> $headers */ public function __construct(public int $status, public array $headers, public string $body) { } public function ok(): bool { return $this->status >= 200 && $this->status < 300; }}