merged error and response template