Is it the `data == '200'` stuff down in the client code?  That is better to rewrite to avoid `==` than to relaxe that check on the entire code base.  Btw, the doc for `$.post` says the callback gets the XHR object so you could check the .status value directly: http://api.jquery.com/jQuery.post/