Catcher
When a Response returns an error status code and the Body within the page is empty, Salvo will attempt to catch this error using a Catcher and display a user-friendly error page.
You can obtain a system-default Catcher by calling Catcher::default(), and then add it to the Service.
The default Catcher supports sending error pages in XML, JSON, HTML, and Text formats.
You can add custom error-catching handlers to the Catcher by attaching hoops to this default Catcher. These error-catching handlers are still of type Handler.
You can add multiple custom error-catching handlers to the Catcher via hoops. Custom error handlers can call the FlowCtrl::skip_next method after processing an error to skip subsequent error handlers and return early.