Fix response status code when scanner is exhausted