public static ErrorResponse getAPiError(this System.Net.WebResponse res) { return(res.readObject <ErrorResponse>()); }