Fix for #193 for transports that supports error classes