locked
return customised data after calling a web api not exists RRS feed

  • Question

  • web api 2

    if calling a web api which is not exists, following message will received by client. how to change to return a customised error message instead of it? e.g. { "RtnCode": -3; "RtnMsg": "xxxxxx"}

    • Moved by CoolDadTx Wednesday, October 31, 2018 2:01 PM ASP.NET related
    Wednesday, October 31, 2018 10:05 AM

All replies

  • How do you call web api? Do you use RestSharp or something similar?
    Wednesday, October 31, 2018 10:17 AM
  • ASP.NET WebAPI can be discussed at the ASP.NET forums.

    http://forums.asp.net/

    Wednesday, October 31, 2018 10:34 AM