Skip to content

Errors

All error responses share a single JSON body shape.

Error body

json
{
  "error": "error_code",
  "message": "Human-readable description of what went wrong."
}

Error codes

HTTP Statuserror codeMeaning
400invalid_requestRequest body or parameters are invalid
400model_not_foundRequested model is not loaded
401unauthorizedAPI key missing, malformed, or incorrect
403forbiddenAPI key valid but request not permitted
404not_foundRequested endpoint does not exist
422unprocessable_entityMalformed JSON or invalid field type
429rate_limitedRequest rejected due to rate limiting
500internal_errorUnexpected server-side failure
503service_unavailableModel not loaded or service not ready

Notes

  • Error bodies are always valid JSON.
  • The message field is safe to display to client developers but must not leak internal paths, secrets, or stack traces.
  • Request correlation IDs attached to logs are not exposed in error bodies.

Example

bash
curl -X POST http://localhost:8080/v1/embeddings \
  -H "Content-Type: application/json" \
  -d '{"input":[]}'

Response:

json
{
  "error": "invalid_request",
  "message": "input cannot be empty"
}

Powered by model2vec