microsoft / microsoft/typespec
[Bug]: Missing Http Response Types
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
### Describe the bug
Some response types, like InternalServerErrorResponse do not exist.
Many responses are defined in https://github.com/microsoft/typespec/blob/fef1c39712fab2636eab3b0b91521676a64f304d/packages/http/lib/http.tsp, but not all of them.
For a comprehensive list, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
### Reproduction
`Unknown identifier InternalServerErrorResponse` from
```
import "@typespec/http";
using Http;
interface Example {
@get list(): InternalServerErrorResponse;
}
```
https://typespec.io/playground?c=aW1wb3J0ICJAdHlwZXNwZWMvaHR0cCI7Cgp1c2luZyBIdHRwOwoKaW50ZXJmYWNlIEV4YW1wbGUgewogIEBnZXQgbGlzdCgpOiBJxCNuYWxTZXJ2ZXJFcnJvclJlc3BvbnNlOwp9Cg%3D%3D&e=%40typespec%2Fopenapi3&options=%7B%22linterRuleSet%22%3A%7B%22extends%22%3A%5B%22%40typespec%2Fhttp%2Fall%22%5D%7D%7D
### Checklist
- [X] Follow our [Code of Conduct](https://github.com/microsoft/typespec/blob/main/CODE_OF_CONDUCT.md)
- [X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Microsoft/typespec/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Contributor guide
Assessment
This issue has not been assessed yet.