changed the status code 401 from 404