create StringResponse and error template