From 99d09a9877d31d81dda93dce9229cf728bc7f6fd Mon Sep 17 00:00:00 2001 From: catbref Date: Thu, 6 Aug 2020 09:45:38 +0100 Subject: [PATCH] Change HTTP response codes for BTC_BALANCE_ISSUE and BTC_TOO_SOON from 422 to 402 & 408 --- src/main/java/org/qortal/api/ApiError.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/qortal/api/ApiError.java b/src/main/java/org/qortal/api/ApiError.java index f39ff7a0..759b8b10 100644 --- a/src/main/java/org/qortal/api/ApiError.java +++ b/src/main/java/org/qortal/api/ApiError.java @@ -128,8 +128,8 @@ public enum ApiError { // Bitcoin BTC_NETWORK_ISSUE(1201, 500), - BTC_BALANCE_ISSUE(1202, 422), - BTC_TOO_SOON(1203, 422); + BTC_BALANCE_ISSUE(1202, 402), + BTC_TOO_SOON(1203, 408); private static final Map map = stream(ApiError.values()).collect(toMap(apiError -> apiError.code, apiError -> apiError));