added http status codes and html response