Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 WCF 服务,它将通过 HTTP 托管在 IIS 中。我希望所有不是 HTTP 200(例如 404、500)的响应都具有 Content-Typetext/plain并且响应正文是文本消息。
text/plain
我怎样才能做到这一点?