RE: Setting status code

2012-10-03 Thread richter
To: [email protected] > Subject: Setting status code > > Hello, > > I'm calling a page with jQuery's $.ajax() and I want it to return a status > code > (201 if ok, 400 if some parameters are missing). The goal is to use .done() > and > .fail() >

Setting status code

2012-09-26 Thread Jean-Christophe Boggio
Hello, I'm calling a page with jQuery's $.ajax() and I want it to return a status code (201 if ok, 400 if some parameters are missing). The goal is to use .done() and .fail() I guess that's the way to go but apart when doing redirects (with $http_header_out('location',['/page',302]) )I don't