Change HTTP response codes for BTC_BALANCE_ISSUE and BTC_TOO_SOON from 422 to 402 & 408

This commit is contained in:
catbref 2020-08-06 09:45:38 +01:00
parent afcf51399e
commit 99d09a9877

View File

@ -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<Integer, ApiError> map = stream(ApiError.values()).collect(toMap(apiError -> apiError.code, apiError -> apiError));