Add APIError and APILoginError.