WebAssembly / WebAssembly/WASI
Specify range of valid HTTP response codes
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
What is the domain of wasi:http/response#set-status-code ?
RFC 9110 specifies the set of HTTP status codes, divided in 5 blocks (100-199, 200-299, 300-399, 400-499, 500-599), and specifies that new status codes should fall in those blocks.
Proposal: codes should be in the range 100-599.
FWIW, Rust's http crate allows 100-999, while "discouraging" codes 600 or above: https://github.com/hyperium/http/blob/master/src/status.rs#L73.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wasi:http/response#set-status-code definition and compare its current domain with the status-code ranges in RFC 9110. Review the referenced Rust http crate behavior for context; the work is done when the specification clearly defines and records the accepted range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100