elliottt opened issue #7276.
elliottt assigned issue #7276 to lukewagner.
elliottt edited issue #7276:
We could always set a response that has an appropriate error code and body, why do we allow writing a
result<response, error>
?
lukewagner commented on issue #7276:
IIUC (not 100% sure here but...), there is a meaningful difference between an error (status) code inside a response (which, I believe is meant to come from the origin) and an error code that you get instead of getting a response (which represents an error somewhere along the path). Symmetrically, this matches the
result<incoming-response, error>
and theresult<future-incoming-response, error>
foroutgoing-handler
.
elliottt commented on issue #7276:
I think that makes sense: giving the embedder the option ability to respond differently to those errors seems right.
elliottt closed issue #7276:
We could always set a response that has an appropriate error code and body, why do we allow writing a
result<response, error>
?
Last updated: Nov 22 2024 at 16:03 UTC