Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpResponseMessage response = new HttpResponseMessage();
- response.Content = new StringContent("This is a bad request man.");
- response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/text");
- response.StatusCode = HttpStatusCode.BadRequest;
- return response;
Add Comment
Please, Sign In to add comment