How to return HTTP 204 response on successful DELETE with ServiceStack
问题 I'm having problems returning a HTTP 204 with no body using ServiceStack If I return: return new HttpResult() { StatusCode = HttpStatusCode.NoContent }; The first time it works perfectly, but a repeated call will cause Fiddler to throw an error stating last response wasn't formed properly. I believe it is because the content type is not explicitly set to application/json , and the response comes back with an empty string or single space character. Setting ContentType = "json" on the