PubSub Server Error Response

Great. Do you have any sample code/project (JS) as a reference ? Thanks Barry.