I have simple service stack web service that takes Name as input parameter. From this thread, I understand ResponseStatus property is no longer required when using new API. But when I tried to compose a request with no Name using fiddler, it returns 400 response code as expected but didn't contain any information regarding the exception. So, does new API provide error description out-of-box especially for non .NET clients. If it doesn't, is there possible way to provide this information.
public object Any(CustomerRequest request)
{
if (request.Name == null)
{
throw new ArgumentException("Name is required");
}
var objCustomer = //get customer from DB
return objCustomer;
}
public class CustomerRequest
{
public string Name {get;set;}
public bool IsActive {get;set;}
}