Skip to content

Instantly share code, notes, and snippets.

@jpda
Last active August 29, 2015 14:13
Show Gist options
  • Save jpda/4c3570ca72252564279f to your computer and use it in GitHub Desktop.
Save jpda/4c3570ca72252564279f to your computer and use it in GitHub Desktop.
internal class WcfErrorResponseData
{
public WcfErrorResponseData(HttpStatusCode status) : this(status, string.Empty, new KeyValuePair<string, string>[0]){ }
public WcfErrorResponseData(HttpStatusCode status, string body) : this(status, body, new KeyValuePair<string, string>[0]) { }
public WcfErrorResponseData(HttpStatusCode status, string body, params KeyValuePair<string, string>[] headers)
{
StatusCode = status;
Body = body;
Headers = headers;
}
public HttpStatusCode StatusCode
{
private set;
get;
}
public string Body
{
private set;
get;
}
public IList<KeyValuePair<string, string>> Headers
{
private set;
get;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment