private static <T extends Response> T handleErrors(T response) throws CoinbaseException {
String errors = response.getErrors();
if (errors != null) {
if (errors.contains("device_confirmation_required")) {
throw new UnauthorizedDeviceException();
} else if (errors.contains("2fa_required")) {
throw new TwoFactorRequiredException();
} else if (errors.contains("2fa_incorrect")) {
throw new TwoFactorIncorrectException();
} else if (errors.contains("incorrect_credentials")) {