internal static HttpStatusCode GetHttpStatusCode(HttpException e) { var httpCode = (e).GetHttpCode(); return (HttpStatusCode) httpCode; } }