publish error response message fix