Judge Market LogoJudgeMarketUS
Rewards Invite Friends News Blog Builders Support
© 2026 JudgeMarket
AboutPrivacyTermsWhat is OPSNewsBlog
HomeWallet
API Docs
Getting StartedAuthenticationMarket DataTradingAccountSocialWebSocketError Codes

Error Codes

HTTP status codes and error response format.

Error Response Format

Errors return a plain-text message body with the appropriate HTTP status code:

HTTP/1.1 401 Unauthorized

Invalid token

Some endpoints return JSON errors:

{
  "error": "Insufficient balance"
}

Status Codes

CodeMeaning
200Success
201Created (new user, new order)
400Bad Request — invalid parameters
401Unauthorized — missing or expired token/API key
403Forbidden — not your resource (e.g. canceling another user's order)
404Not Found — asset or resource doesn't exist
429Too Many Requests — rate limit exceeded (5 req/s)
500Internal Server Error — unexpected failure

Common Error Messages

  • "Invalid token" — JWT expired or malformed. Refresh your token via /auth/refresh.
  • "Insufficient balance" — Not enough OPS for the order.
  • "Username already exists" — Registration conflict.
  • "Order not found" — Invalid order ID for cancel.
  • "Not your order" — Attempting to cancel another user's order.
  • "Asset not found" — Invalid asset ID.