# Judge0 via Locus x402 — List Statuses

> Judge0 via Locus x402 — List Statuses is a paid API for AI agents from judge0.x402.paywithlocus.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the list of all available execution status codes used by the Judge0 code execution engine.

## Facts

- Endpoint: POST https://judge0.x402.paywithlocus.com/judge0/list-statuses
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/judge0-via-locus-x402-list-statuses-bd38ade1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QqQmnILWkRfzhpewFpKbP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability judge0-via-locus-x402-list-statuses-bd38ade1 -d '<json body>'
```

Example prompt: Can you fetch the full list of execution status codes that the Judge0 sandboxed code runner uses, so I can map each numeric status ID to its meaning in my app?

## When to prefer this

Use this endpoint when you need to programmatically retrieve the canonical list of Judge0 execution status codes and their human-readable labels — for example, to build a UI, parse submission results, or initialize a status mapping in your application. Prefer this over hardcoding status IDs, as it ensures your mapping stays in sync with the live Judge0 deployment behind the x402 paywall.

## Known failure modes

- Payment failure if insufficient USDC balance — returns 402 with payment required details
- Malformed request body causes 400 bad request
- Service unavailability returns 5xx error
- Rate limiting or quota exhaustion may block repeated calls

## How this service works

Locus public pay-per-use API

## Output

A JSON object containing the list of all Judge0 execution status entries, each with a numeric ID and a descriptive label (e.g. 'In Queue', 'Processing', 'Accepted', 'Wrong Answer', 'Runtime Error', 'Time Limit Exceeded', etc.), along with payment settlement metadata confirming the $0.005 USDC charge and a request tracking ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/judge0-via-locus-x402-list-statuses-bd38ade1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from judge0.x402.paywithlocus.com](https://www.zero.xyz/host/judge0.x402.paywithlocus.com/llms.txt)
