Add error field to expected JSON