Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Error Codes

Lior edited this page Jul 7, 2019 · 13 revisions

Marketplace Error Codes and Http Codes

The json body error code is always prefixed by the http status code:

BadRequest: (400)

  • ClientStreamError: 4000
  • UnknownSignInType: 4001
  • WrongJwtAlgorithm: 4002
  • InvalidPollAnswers: 4003
  • InvalidExternalOrderJwt: 4004
  • InvalidJwtSignature: 4005
  • JwtKidMissing: 4006
  • MaxWalletsExceeded: 4007
  • InvalidWalletAddress: 4008
  • ExpiredJwt: 4009
  • InvalidJwtIssuedTime: 40010
  • MissingFieldJWT: 40011
  • BadJWTInput: 40012

Unauthorized (401)

  • MissingToken: 4011
  • InvalidToken: 4012
  • InvalidApiKey: 4013
  • TOSMissingOrOldToken: 4014
  • CrossAppWallet: 4015

NotFound (404)

  • App: 4041
  • Offer: 4042
  • Order: 4043
  • PublicKey: 4044
  • OfferCapReached: 4045
  • User: 4046

RequestTimeout: (408)

  • OpenOrderExpired: 4081

Conflict: (409)

  • ExternalOrderAlreadyCompleted: 4091
  • ExternalEarnOfferByDifferentUser: 4092
  • CompletedOrderCantTransitionToFailed: 4093
  • ExternalOrderByDifferentDevice: 4094
  • UserHasNoWallet: 4095

Gone: (410)

  • WrongBlockchainVersion: 4101

TooManyRequests: (429)

  • Registrations: 4291
  • Amounts: 4292
  • UserRequests: 4293

InternalServerError: (500)

  • OpenedOrdersOnly: 5001
  • OpenedOrdersUnreturnable: 5002

Non HTTP Errors shown in Order.error field (700)

these errors aren't thrown, they are set to the order.error field

  • WrongSender: 7001
  • WrongRecipient: 7002
  • WrongAmount: 7003
  • AssetUnavailable: 7004
  • BlockchainError: 7005
  • TransactionTimeout: 7006