# ApiResponseAttribute constructor

Kind: Constructor  
Namespace: `Sisk.Documenting.Annotations`  
Assembly: `Sisk.Documenting.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.Annotations.ApiResponseAttribute.-ctor.html

## ApiResponseAttribute(HttpStatusCode) {#Sisk_Documenting_Annotations_ApiResponseAttribute__ctor_System_Net_HttpStatusCode_}

Initializes a new instance of the [ApiResponseAttribute](https://docs.sisk-framework.org/api/Sisk.Documenting.Annotations.ApiResponseAttribute.md) class with the specified status code.

```csharp
public ApiResponseAttribute(HttpStatusCode statusCode)
```

### Parameters

`statusCode` [HttpStatusCode](https://learn.microsoft.com/dotnet/api/system.net.httpstatuscode)

The HTTP status code for the response.
