PLEASE don’t do this especially when your API is supposed to be RESTful.
In REST, the HTTP status is what determines if there’s an error.
2xx - Good
4xx - User fault
5xx - Our fault.
I’ve seen you’ve mentioned @supabase does this. Last I checked Supabase is a BaaS not a standards committee.
If your API uses REST and you want a structured response that can transfer across teams, use JSON:API jsonapi.org/
Nov 6, 2025 · 8:40 PM UTC

































