How to make custom WCF error handler return JSON response with non-OK http code?

前端 未结 8 1602
春和景丽
春和景丽 2020-12-04 12:36

I\'m implementing a RESTful web service using WCF and the WebHttpBinding. Currently I\'m working on the error handling logic, implementing a custom error handler (IErrorHand

8条回答
  •  一整个雨季
    2020-12-04 12:53

    I had the exact same problem. This was useful for me:

    http://zamd.net/2008/07/08/error-handling-with-webhttpbinding-for-ajaxjson/

提交回复
热议问题