forked from Qortal/qortal
Change HTTP response codes for BTC_BALANCE_ISSUE and BTC_TOO_SOON from 422 to 402 & 408
This commit is contained in:
parent
afcf51399e
commit
99d09a9877
@ -128,8 +128,8 @@ public enum ApiError {
|
|||||||
|
|
||||||
// Bitcoin
|
// Bitcoin
|
||||||
BTC_NETWORK_ISSUE(1201, 500),
|
BTC_NETWORK_ISSUE(1201, 500),
|
||||||
BTC_BALANCE_ISSUE(1202, 422),
|
BTC_BALANCE_ISSUE(1202, 402),
|
||||||
BTC_TOO_SOON(1203, 422);
|
BTC_TOO_SOON(1203, 408);
|
||||||
|
|
||||||
private static final Map<Integer, ApiError> map = stream(ApiError.values()).collect(toMap(apiError -> apiError.code, apiError -> apiError));
|
private static final Map<Integer, ApiError> map = stream(ApiError.values()).collect(toMap(apiError -> apiError.code, apiError -> apiError));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user