fix: response tx for machine update requests
fix: CT error handling
This commit is contained in:
parent
595e215dd5
commit
cf38f09b62
2 changed files with 5 additions and 1 deletions
|
|
@ -20,6 +20,10 @@ function postTx (req, res, next) {
|
|||
switch (tx.errorCode) {
|
||||
case 'InsufficientFundsError':
|
||||
throw httpError(tx.error, 570)
|
||||
case 'scoreThresholdReached':
|
||||
throw httpError(tx.error, 570)
|
||||
case 'ciphertraceError':
|
||||
throw httpError(tx.error, 572)
|
||||
default:
|
||||
throw httpError(tx.error, 500)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue