added status code so failed requests respond with 404/etc instead of 200 OK for everything