Target error class
A closure function converting to the HttpException class
contracts/common.md#principled-implementation An existing entry for the same class is removed first, then the new entry is placed before the first registered class that it extends, so specificity order holds however the calls are ordered.
contracts/common.md#prohibited-implementation-shortcuts The order rule is derived from the prototype chain, not from a list of known classes.
Insert an error class with converter.
If you've inserted an duplicated error class, the closure would be overwritten.