Doesn't this result in a response body of '500' but a HTTP response code of 200?  If this is to handle the response codes for the `$.post()`, it seems like the jqXHR callback parameter should be used instead.