added template error response