This should call into one of the generic functions; I think it's called handleAPIError or something.