From 3af1c8a3fd20784d3bd06f45690afe238a0cd2b2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 16 Oct 2025 20:20:27 -0700 Subject: [PATCH] [0.3.0-draft] Add an "invalid status" error code. Some host environments have the ability to report an invalid status error when a response is received, and there doesn't currently appear to be a way to translate this other than using `internal-error`. Since `error-code` has codes like `HTTP-request-method-invalid`, and `HTTP-request-URI-invalid`, it seems to make sense to add a `HTTP-response-status-invalid` too. --- wit-0.3.0-draft/types.wit | 1 + 1 file changed, 1 insertion(+) diff --git a/wit-0.3.0-draft/types.wit b/wit-0.3.0-draft/types.wit index 0f0e838..fa4ec8b 100644 --- a/wit-0.3.0-draft/types.wit +++ b/wit-0.3.0-draft/types.wit @@ -60,6 +60,7 @@ interface types { HTTP-response-trailer-size(field-size-payload), HTTP-response-transfer-coding(option), HTTP-response-content-coding(option), + HTTP-response-status-invalid, HTTP-response-timeout, HTTP-upgrade-failed, HTTP-protocol-error,