This is the interface custom error formatters implement. Register it in the configuration file like this: