You could always create an instance of the Response
type and set the Body
and StatusCode
yourself. If you wanted to take a shortcut you could do something like
var r = (Response)"Some string that goes into the body";
r.StatusCode = 123;
return r;