fix of mistake made returning ERROR_NOT_AUTHENTICATED from api_make_request