| Code snippet to return 404 errors from HttpError?
Below is the Code for returning 404 error from HttpError:-
string message = string.Format(“TestCustomer id = {0} not found”, customerid);
return Request.CreateErrorResponse(HttpStatusCode.NotFound, message); | | |