Attempt to extract error message from response if possible