All API errors in one place

Hi there!
I’m trying to group all possible errors that our API throws in one place, so it’s easy for the consumer of the API to keep track. Any ideas on how to do this in the RAML spec?

You can use webapi-parser to validate and return any error you may have in your API definition, here’s an example. The benefit of using webapi-parser is that it supports both RAML and Open API.