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.
我们编写了一个自定义媒体类型格式化程序。当我们发现我们无法反序列化输入时,我们想抛出一个错误。我想向发出 PUT/POST 请求的用户返回 HTTP 错误代码,但我不确定要返回的正确错误代码是什么。有任何想法吗?