Not getting the error message from asp.net web api backend in $ajax method
I have a simple ASP.Net Web API method that returns a BadRequest like this .. catch (Exception ex) { Log.Error($"CreateRequest:requestedBy:{requestedBy.FirstName} {requestedBy.Surname} {requestedBy.EmailAddress} Message:{ex.Message} Stack Trace:{ex.ToString()}"); return BadRequest(ex.Message); } The calling front end catches the error the usual way like this..…