My client is requesting to set status code=420 if the WCF service returns an error. How can i achieve it?
Is this even possible? I tried to set HTTP status code
WebOperationContext ctx = WebOperationContext.Current;
ctx.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.BadRequest;
I cannot find status code 420 in HttpStatusCode.