Skip to content

MaintenanceResponse ​

The body returned by the maintenance details endpoint at MaintenancePath while a window is active, sent with 503 Service Unavailable.

This is the only response the package writes in its own shape. A request blocked by the middleware receives the shared error body from IHttpErrorResponseWriter instead.

Fields

Message: string?
The message for the active window.

StartsAt: DateTimeOffset?
When the window became, or becomes, active.

EndsAt: DateTimeOffset?
When the window ends, when an end time was given.

EnabledAt: DateTimeOffset?
When maintenance mode was turned on.

Type signature ​

csharp
public sealed record MaintenanceResponse
{
    public required string? Message { get; init; }
    public required DateTimeOffset? StartsAt { get; init; }
    public required DateTimeOffset? EndsAt { get; init; }
    public required DateTimeOffset? EnabledAt { get; init; }
}

All packages are released under the MIT License.