All releases
Improvement

Error bodies gain status_code; statusCode is deprecated

Every API now returns status_code in its error body, alongside the old statusCode, which keeps working but is deprecated.

Every key in every ProductCraft API is snake_case, except one: the error body carried the HTTP status as statusCode. Error bodies from Auth, Mail, Waitlist, Social, Trawl and the Platform API now carry status_code as well, with the same value: { status_code, statusCode, message, code, details? }.

Nothing breaks. statusCode is still sent, and error responses announce the deprecation with a Deprecation: true header and a Link to the errors page. There is no removal date; a removal would be announced here first. Read status_code in new code.

Two smaller changes to the same body: the reason-phrase error key ("Not Found"), which some 404s and 401s carried, is gone (branch on code, which every error has), and validation messages now name the field the way you sent it (domain_id must be a UUID).