SpeakNotes API-foutcodes
Elke fout geeft dezelfde JSON-envelop terug: een stabiele code, een leesbaar bericht, een link naar deze pagina en de velden die fout zijn, indien van toepassing.
De vorm
Fouten worden nooit als HTML teruggegeven. De code is stabiel en veilig om op te vertakken; het bericht kan op elk moment veranderen.
HTTP/1.1 402 Payment Required
X-Request-Id: 0f0a3f2c-6f1e-4a5e-9f1b-9d0b5a2c7e11
{
"error": {
"type": "billing_error",
"code": "insufficient_credits",
"message": "This operation costs 14 credits and the account has 3 left.",
"doc_url": "https://speaknotes.io/developers/errors#insufficient_credits",
"request_id": "0f0a3f2c-6f1e-4a5e-9f1b-9d0b5a2c7e11"
}
}Codes
invalid_request400The request was malformed or failed validation.
invalid_token401The credential is missing, malformed, expired, or revoked.
insufficient_scope403The credential is valid but lacks the scope this operation needs.
not_found404The requested resource does not exist.
method_not_allowed405That HTTP method is not supported on this path.
conflict409The request conflicts with the current state of the resource.
payload_too_large413The uploaded file exceeds the size limit.
unsupported_media_type415The file format is not supported.
insufficient_credits402The account has no credits left for this operation.
rate_limited429Too many requests. Retry after the interval in the Retry-After header.
upstream_failure502A provider SpeakNotes depends on failed.
content_policy422The content was refused by the AI content policy.
internal_error500SpeakNotes failed to process the request.
Wat te proberen bij een fout
Probeer rate_limited opnieuw na het interval in Retry-After, en upstream_failure één of twee keer met backoff. Probeer invalid_request, insufficient_scope of content_policy nooit opnieuw zonder wijzigingen: deze zullen elke keer op dezelfde manier falen.
Request-ids
Elk antwoord bevat een X-Request-Id header, en foutmeldingen herhalen deze. Geef deze door aan de ondersteuning en de exacte fout kan worden gevonden.