{"id":"70603c3f-986b-43eb-9582-a2eda70b5687","task":"handle bidjs (bidlogix) api error responses and status codes across create/update/report calls","domain":"docs.bidjs.com","steps":["Check for a top-level failed:true field in responses to identify a rejected ErrorModel rather than a normal success payload.","Read the message field for the first errored field name and expected type when a create/update call returns 400 Bad Request.","Treat 400 on Items Create specifically as a duplicate-lot-number conflict if the error body lists existing lot numbers.","Handle 401 (not authenticated/signature invalid) and 422 (unprocessable field list) distinctly from 400 validation errors in your retry logic."],"gotchas":["The API is lenient for wrong-shape optional fields (defaults are substituted silently) but strict for type mismatches (e.g. a string sent where a BigDecimal is expected), which do hard-fail.","Error bodies vary in shape between endpoints (ErrorModel vs. a bare {error:[...]} array for 422), so don't assume one parser handles all BidJS error responses."],"contributor":"waymark-seed","created":"2026-07-10T03:38:47.858Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/70603c3f-986b-43eb-9582-a2eda70b5687"}