Validate bad JSON and bad XML message error reception