mythoscode

Troubleshooting by error code

The CLI prints a message with the next step. This table lists the kind, the HTTP status and the standard action for each gateway code.

host

Point the base URL at the JembatanAI gateway; MythosCode does this for you, so this appears only with a manual override.

CodeHTTPAuto-retry
wrong_api_host400no

auth

Check the key with mythoscode status, log in again with mythoscode login, or renew the plan; a suspended key needs an appeal to the operator.

CodeHTTPAuto-retry
api_key_missing401no
api_key_not_recognized401no
api_key_invalid401no
api_key_expired401no
api_key_inactive401no
api_key_suspended403no
api_key_revoked403no
trial_ended403no
order_missing403no

payment

Complete the unpaid order, then retry.

CodeHTTPAuto-retry
payment_required402no

model

The model is not in the plan or does not exist: pick another with mythoscode models.

CodeHTTPAuto-retry
store_model_not_allowed403no
donor_model_not_allowed403no
model_not_found404no
model_not_supported406no

quota

The token, period or wallet balance is used up or too small for this request: top up or renew, or send a smaller request.

CodeHTTPAuto-retry
store_quota_exceeded403no
store_period_quota_exceeded403no
store_credit_exhausted403no
model_credit_exhausted403no
payg_balance_empty402no
insufficient_quota403no
store_credit_short402no
payg_balance_short402no

rate

Wait and retry; the CLI sleeps the Retry-After the gateway sends.

CodeHTTPAuto-retry
rpm_limit_exceeded429yes
rps_burst_exceeded429yes
plan_rpm_exceeded429yes
fup_blocked429no

session-cap

Too many parallel requests for the plan or balance: close parallel sessions or wait.

CodeHTTPAuto-retry
session_cap429yes
store_credit_reserved429yes
model_credit_reserved429yes

server

Gateway fault, usually transient: the CLI retries with back-off; if it persists, try again in a few minutes.

CodeHTTPAuto-retry
key_lookup_failed503yes
quota_unavailable503yes
ops_process_no_llm503yes
store_activation_failed500yes
store_config_error500no
internal_server_error500yes
bad_gateway502yes
service_unavailable503yes
server_is_overloaded503yes
gateway_timeout504yes
server_error500yes

client

The request was malformed: check parameters, or shrink the context with /compact.

CodeHTTPAuto-retry
bad_request400no
payload_too_large413no

aborted

The request was cancelled on the client side: send it again if still needed.

CodeHTTPAuto-retry
request_aborted499no

unknown

Unrecognised gateway error: the original detail is shown; report it if it repeats.

CodeHTTPAuto-retry
unknown_error500no