Fixed responsecode bug for 401 responses.