Return response when opening an index