set http status code to api results whose status = error refs #126
Merge pull request #127 from banjun/id/126

set http status code to api results whose status = error refs #126