Fixing get statement to raise a 404 if it doesn't exist