Option to return errors as JSON
Author: hassanshaikleyCreated Nov 15, 2023Updated Sep 14, 2026
Labelsfeature request
Hey, it would be nice to be able to do that. I understand the onError callback but that requires a good bit of finessing to convert to JSON. In particular I am thinking of validator errors.
Source: elysiajs/elysia