added HTTP repsonse codes to REST routes