Use correct status codes with STAT