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