Most of the sender nodes can enable an additional output pin to redirect the flow to in case of platform errors (for example trying to send a message to and invalid chatId). All the chat information are preserved in order to take the right action in this case.

The Node-RED Catch all node will intercept any relevant error raised by the receivers/senders. This might be useful to take appropriate actions based on the chat user (chatId). The error payload will be:

{  
	chatId: 1234,  
	code: 403, // error code, it depends on the platform  
	description: 'Forbidden: bot was blocked by the user',  
	error: ... // original error object
}