added 404 and changed content-type