This is same with commit 976938bf30 except that it was for Api::V1::FavouritesController while this is for Api::V1::BookmarksController.
976938bf30
respond_to