public static ApiException Factory(IErrors errorDetails, IResponse errorResponse)
        {
            var httpResponse     = errorResponse.RawResponse;
            var exceptionMessage = string.Format("API Error Occured [{0} {1}]", ((int)httpResponse.StatusCode).ToString(), httpResponse.ReasonPhrase);

            exceptionMessage += errorDetails.Render();
            var exception = new ApiException(exceptionMessage)
            {
                Details  = errorDetails,
                Response = errorResponse
            };

            return(exception);
        }