Use the ErrorHandler mechanism in ConnectorResourceHandler (#12269)

Change-Id: I9d608e942380bd53868b65eda180fe9c8477c138