* making helper function, checking and setting response in given step and when steo respectively * returning response and using in given/then steps as required in favoritesContext * set the returned response on SpaceContext * changed to inline variable in some lines as required * to check for the specific https response code