Correctly set HTTP status text

This is a follow up to [1]. It restores the previous handling of
`NetworkRequst.statusText` and moves the functionality introduced in
[1] to `NetworkRequest.inferredStatusText()`, which is called when
displaying the HTTP status text in the UI.

[1] https://crrev.com/c/4729682

Bug: 1470363
Change-Id: I7cf9767a90f2a6fce22d2db27d7e8c02bb8dc2da
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4843633
Auto-Submit: Wolfgang Beyer <[email protected]>
Reviewed-by: Kateryna Prokopenko <[email protected]>
Commit-Queue: Wolfgang Beyer <[email protected]>
diff --git a/front_end/panels/network/components/RequestHeadersView.ts b/front_end/panels/network/components/RequestHeadersView.ts
index 4b6f7e4..d0b96f6 100644
--- a/front_end/panels/network/components/RequestHeadersView.ts
+++ b/front_end/panels/network/components/RequestHeadersView.ts
@@ -404,7 +404,7 @@
       statusClasses.push('status-with-comment');
     }
 
-    const statusText = [this.#request.statusCode, this.#request.statusText, comment].join(' ');
+    const statusText = [this.#request.statusCode, this.#request.getInferredStatusText(), comment].join(' ');
 
     // Disabled until https://crbug.com/1079231 is fixed.
     // clang-format off