[docs/libraries/http] Fix incorrect reference to @header annotation in statusCode documentation. (#3949)

I believe this mistakenly says to use the `@header` annotation on a
property and should say `@statusCode`.
This commit is contained in:
Greg Poirier 2024-07-23 17:05:25 -04:00 коммит произвёл GitHub
Родитель 49004b60d5
Коммит 39d4c60da5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -133,7 +133,7 @@ namespace Pets {
**Configure:**
Use the `@header` decorator on a property named `statusCode` to declare a status code for a response. Generally, setting this to just `int32` isn't particularly useful. Instead, use number literal types to create a discriminated union of response types. Let's add status codes to our responses, and add a 404 response to our read endpoint.
Use the `@statusCode` decorator on a property to declare a status code for a response. Generally, setting this to just `int32` isn't particularly useful. Instead, use number literal types to create a discriminated union of response types. Let's add status codes to our responses, and add a 404 response to our read endpoint.
```typespec
@route("/pets")