Put http status code utils for restfull api

Put http status code utils for restfull api. CI failed due to the master also failed when i fork this project.