Status codes the Models API returns, and what to do about each.
Errors take the OpenAI shape, so OpenAI SDKs raise their usual exceptions. 401, 403 and 500 send plain text instead.
{"error": {"message": "This model does not exist or has been deprecated. Please contact support@hcompany.ai for assistance.", "type": "invalid_request_error", "param": null, "code": "model_not_found"}}
Status
code or param
Cause
Fix
400
param: "model"
No model in the body.
Set model.
400
param: "tools"
tools on a model without function calling, such as holo3-122b-a10b.