KestrunResponse.WriteObject constructor
Represents a simple object for writing responses with a value and status code.
public WriteObject(object? Value, int Status = 200, int? Error = null)
| parameter | description |
|---|---|
| Value | The value to be written in the response. |
| Status | The HTTP status code for the response. |
| Error | An optional error code to include in the response. |
See Also
- record WriteObject
- namespace Kestrun.Models