fail if we get the wrong response type