added http handler to output required data format of race