Zum Inhalt springen

Sprache

Sprache

Jede Seite dieses Portals gibt es auf Deutsch und Englisch. Die Fehlertexte der API folgen deinem Accept-Language-Header, Vorgabe ist Deutsch.

Deutsch und Englisch

Du sendestDu bekommstContent-Language
Accept-Language: enenglische title und detailen
Accept-Language: dedeutsche Textede
kein Header oder eine andere Sprachedeutsche Textede
Verzweige auf code, nie auf den Text. Der Code ist in beiden Sprachen gleich und ändert sich innerhalb einer Version nie; Texte dürfen sich ändern.

Anfrage auf Englisch

Beispielantwort
POST /v1/contacts · Accept-Language: en

HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json
Content-Language: en

{
  "type": "https://developers.bodo-app.com/problems/IDEMPOTENCY_PAYLOAD_MISMATCH",
  "title": "Idempotency-Key used with a different payload",
  "status": 422,
  "instance": "/v1/contacts",
  "code": "IDEMPOTENCY_PAYLOAD_MISMATCH",
  "requestId": "req_01JBD8Y3K5M7Q2W9X4Z6T1V0NP"
}

Derselbe Fehler auf Deutsch

Beispielantwort
POST /v1/contacts

HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json
Content-Language: de

{
  "type": "https://developers.bodo-app.com/problems/IDEMPOTENCY_PAYLOAD_MISMATCH",
  "title": "Idempotency-Key mit anderem Inhalt",
  "status": 422,
  "instance": "/v1/contacts",
  "code": "IDEMPOTENCY_PAYLOAD_MISMATCH",
  "requestId": "req_01JBE9Z4L6N8R3X0Y5A7U2W1QP"
}