Hi Jesse!
Currently, there is no way to define an error handler to more than one http status code, but we can improve this in future releases.
Although, it's possible to implement this behavior with an interceptor. Example:
@app.Interceptor("/.*", chainIdx: 0)
errorHandler() {
app.chain.next(() {
if (app.response.statusCode != 200) {
//handle error here
}
});
}
Let me know if that helps.
Best regards,
Luiz.