Override the default Content-Type for responses in NancyFx
问题 I'm writing a REST API with NancyFx. I often got code like this: Post["/something"] = _ => { // ... some code if (success) return HttpStatusCode.OK; else return someErrorObject; }; The client always assumes application/json as the content type of all responses. It actually sets Accept: application/json in the request. Responses without application/json are errors regardless of the actual body. It simply checks the content type and aborts if it doesn't match json. I can't change this behaviour