Detect json requests in squire/response for errors