return http status code 401 if request is fired by ajax, support 401 for veil.js