Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
This page explains how the Vitrin (window.zid) handles success and error responses across all modules.
error.status
→ HTTP status codeerror.code
→ API error codeerror.responseData
→ Full error body
Code | Meaning |
---|---|
200 | Success |
201 | Created |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
422 | Validation Error |
500 | Server Error |
.then().catch()
since all functions return Promises).status
codes to guide handling.