Generalizing the http response code into router.go and cleaning up rest implemntation