make transport error response configurable