HttpSuccessStatusCodeAttribute public class HttpSuccessStatusCodeAttribute : Attribute Service Host Custom HttpStatusCode. Documentation public HttpStatusCode StatusCode { get; set; } StatusCode to return. public HttpSuccessStatusCodeAttribute(HttpStatusCode statusCode) Instantiate an HttpStatusCode attribute.