Reference

Guide

String

A simple string will be converted to an HTML response with a HTTP status code of 200

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => 'custom/response',
      'action'  => function () {
        return '<html><body>Boring!</body></html>';
      }
    ]
  ]
];