Return content with IHttpActionResult for non-OK response October 14, 2022 by Tarik You can use this: return Content(HttpStatusCode.BadRequest, "Any object");