Share via


ChaosHandler.Create503Response(TimeSpan) Method

Definition

Create a HTTP status 503 response message

public static System.Net.Http.HttpResponseMessage Create503Response (TimeSpan retry);
static member Create503Response : TimeSpan -> System.Net.Http.HttpResponseMessage
Public Shared Function Create503Response (retry As TimeSpan) As HttpResponseMessage

Parameters

retry
TimeSpan

TimeSpan for retry condition header value

Returns

A HttpResponseMessage object simulating a 503 response

Applies to