Add HTTP status codes, and response to ajax post