From a514a6edbfe61bba6159987a8ef4726ca0ff8a17 Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Thu, 12 Oct 2017 15:24:14 +0300 Subject: [PATCH] Update API error codes --- src/util/errors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/errors.js b/src/util/errors.js index 1bcd82f1..df96d914 100644 --- a/src/util/errors.js +++ b/src/util/errors.js @@ -10,10 +10,10 @@ */ const ERROR_CODE_TRANSITION_PARAMETER_VALIDATION_FAILED = 'transition-parameter-validation-failed'; -const ERROR_CODE_PAYMENT_FAILED = 'payment-failed'; +const ERROR_CODE_PAYMENT_FAILED = 'transaction-payment-failed'; const ERROR_CODE_EMAIL_TAKEN = 'email-taken'; -const ERROR_CODE_TOO_MANY_VERIFICATION_REQUESTS = 'too-many-verification-requests'; -const ERROR_CODE_UPLOAD_OVER_LIMIT = 'upload-over-limit'; +const ERROR_CODE_TOO_MANY_VERIFICATION_REQUESTS = 'email-too-many-verification-requests'; +const ERROR_CODE_UPLOAD_OVER_LIMIT = 'request-upload-over-limit'; const responseErrors = apiError => { return apiError && apiError.data && apiError.data.errors ? apiError.data.errors : [];