return 404 if the suffix of the resource does not match FileType