jacwright / RestServer

A PHP REST server for providing a very light-weight REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to set status code to 201?

Karttin opened this issue · comments

Hi,

I am using RestServer for a while now. Is it possible to set status code to 201 instead of 200 in specific scenarios?

Kind Regards
Kartt_in

Definitely.

header("HTTP/1.1 201 Created");