/// <summary> /// Sends error serialized as ErrorDescription object and appropriate HTTP status /// code.If status code is not defined, it uses 500 status code. /// </summary> /// <param name="response">a Http response</param> /// <param name="ex">an error object to be sent.</param> protected Task SendErrorAsync(HttpResponse response, Exception ex) { return(HttpResponseSender.SendErrorAsync(response, ex)); }
protected async Task SendErrorAsync(HttpResponse response, Exception error) { await HttpResponseSender.SendErrorAsync(response, error); }