I created a simple submit page using codeigniter and angular.js. How can I throw HTTP status codes after somebody clicked submit button, so the the user will know if it is successful or not, or any other reason why it failed?
BTW, I base my code in this post Codeigniter + Angular Js: How to receive JSON data