Allow error decorators to be configured