DashboardcliAPI shared HTTP success predicate

API shared HTTP success predicate

Category: gotcha
Confidence: 1.00
ID: 01a024e5-f89a-742d-94d0-dd4ca9b39bc0
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 1XIG0Q84ck4K9HG1O
Created: 2026-08-21 12:40:37
Updated: 2026-08-21 15:17:26

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 3 15h ago

Content

Trap: telemetry using status >= 400 looks consistent with ordinary HTTP failure handling, but API output treats every status outside 200–299 as an error, so 199 and 3xx responses lose api_error attributes. Fix: use the exported shared HTTP-success predicate in both output and telemetry, and keep boundary regression tests for 199, 200, 299, and 300.

Move to: