symfony/symfony — pull request #5705 by shiroyuki (2012-10-08 19:47:02+00:00)
Title: Returns HTTP 401 response on an XML HTTP request.

When the XML HTTP request is made (usually by JavaScript), instead of sending a HTTP 302 redirection to the login screen, respond with a HTTP 401 response.