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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.