Http status codes fix in REST tutorial

Hi,

I fixed REST API tutorial to be more restful.

Thanks,

Kamil