Fix function name

Function name in the example is "status", not "index".