What is the best way to return errors from a WCF service in a RESTful way?

前端 未结 5 1671
谎友^
谎友^ 2020-12-04 18:11

Using WCF in a RESTful way seems great. I’m a big fan of the big guns like simplicity and flexibility, but I also love the way the Urls end up looking. What can I say, I’m a

5条回答
  •  有刺的猬
    2020-12-04 18:30

    Send the proper response code and you can supply the custom error message in the body of the response.

提交回复
热议问题