Detect if the response of the template works, otherwise throw an error.