Welcome Guest, Not a member yet? Register   Sign In
How to change HTTP response code?

Is it possible to change Codeigniter's HTTP response code?

Since i have a controller that outputs json, that would be nice so i could "alert" the client about "exceptions".
Obviously this could be done through the json response itself, but i think it would be cleaner to do it by http response code..

See the manual, in the output class:
$this->output->set_status_header(code, 'text');

I've looked all over the place, including the search on this forums.... maybe i used the wrong search terms...

Anyway, thank you alot

Theme © iAndrew 2016 - Forum software by © MyBB