typeapi
typeapi copied to clipboard
Add catch all error schema
Currently a user needs to specify concrete every error code i.e. 400, 404, 500 etc. and a corresponding schema. Most APIs have a unified error response for all errors. We should add a special key i.e. "xxx" or "000" to specify a schema for all errors.