madeenan

Errors

Madeenan returns simple JSON errors. Read the HTTP status first, then the detail code.

What This Does

Error responses help you separate authentication issues, validation issues, hosted chat issues, and rate limits.

Minimal Response

{
"detail": "hosted_chat_not_configured"
}

Status Codes

FieldTypeRequiredDefaultNotes
400HTTPNoInvalid payload, hosted chat configuration issue, unsupported option, or provider error.
401HTTPNoMissing or invalid Madeenan API key or admin token.
403HTTPNoMissing scope or blocked origin.
404HTTPNoThe requested source, session, or app was not found.
429HTTPNoRate limit exceeded. See Rate Limits for retry guidance.
500HTTPNoUnexpected server error.

Hosted Chat Errors

{
"detail": "provider_rate_limited"
}
FieldTypeRequiredDefaultNotes
provider_bad_requestdetailNoThe hosted model provider rejected the request body or model parameters.
hosted_chat_not_configureddetailNoHosted chat is not configured on the Madeenan server.
provider_rate_limiteddetailNoThe hosted model account hit its own quota or rate limit.
provider_timeoutdetailNoThe hosted model provider did not respond in time.

Common Mistakes

  • Retrying 401 or 403 responses instead of fixing credentials.
  • Treating hosted chat errors as Madeenan retrieval errors.
  • Retrying 429s without backoff. Use the Rate Limits guide.

Model/provider note

Hosted chat is quota limited for testing and lightweight use. Production apps should call /v1/search, then use their own model provider from their backend.