The Controller provides a glue between the domain model objects and transport layer events. Like the HTTP interface, Controllers are Request/Response oriented.
When Apify returns error messages, it does so in your requested format.
Error templates are rendered when an unhandled exception occurs during the request processing.