Driftwatch

Cloudflare / Cloudflare API /

Breakingdirection flip: their tools call this safe

code gained response values

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects errors[].code on PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items.

can now return 7116

Who is affected

Code that reads PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items (errors[].code).

Before and after

WhereBeforeAfter
PUT /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items · errors[].code71117116
POST /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items · errors[].code71117116
PATCH /accounts/{account_id}/ai-search/namespaces/{name}/instances/{id}/items/{item_id} · errors[].code71117116

Code that breaks

switch (response.errors[0].code) {
  // existing branches …

  default:
    throw new Error("unexpected code");
}

Based on Cloudflare’s published API specification. How severity is decided.