I have the API in which I am trying to use PutAsync to update some fields. If the Put is successful I have message that will be sent as Response. But if the there are any exception when doing that I will have to send the exception message as response

```
HttpResponseMessage responseMessage = (await client_Name.PutAsync(c_URL, httpContent));

if (responseMessage.IsSuccessStatusCode)
{
    return Ok(serviceResponse);
}
else
{
    string errormessage = responseMessage.StatusCode.ToString();
}

```

I am not sure how to handle the HttpResponseMessage exception. I understand `responseMessage.StatusCode` gives the status but alos not sure how to construct them as response as the return type is `Task<IHttpActionResult>`