Judge Market 标志JudgeMarketUS
奖励 邀请好友 资讯 博客 开发者 客服支持
© 2026 JudgeMarket
简介隐私条款什么是 OPS资讯博客
首页钱包
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.