Resolve the error format configuration to a concrete formatter function.
format
'default'
'rfc9457'
'rfc7807'
TypeError
The error format identifier or custom formatter function
The resolved formatter function
When an unknown format string is provided
0.1.0
Resolve the error format configuration to a concrete formatter function.
formatis'default','rfc9457', or the deprecated'rfc7807', the corresponding built-in formatter is returned.formatis already a function, it is returned as-is.TypeErroris thrown.